/* Main Container */
.supplier-form-container {
    max-width: 1080px;
    margin: 0 auto;
    padding: 50px 100px;
    background: var(--p2);
    color: #fff;
    border-radius: 16px;
    font-family: "Geologica", sans-serif;
}

.supplier-image {
    background-image: url('../img/supplier-form-bg.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    width: 100%;
    min-height: 400px;
    border-radius: 8px;
    margin-top: 30px;
}

.supplier-form-header {
    width: 100%;
    margin-bottom: 26px;
}

.supplier-form-header h2 {
    font-family: "Montserrat", sans-serif;
    font-weight: 700;
    font-size: 38px;
    line-height: 110%;
    color: #FBFBFB;
    margin-bottom: 12px !important;
}

.supplier-form-header p {
    font-weight: 400;
    font-size: 16px;
    line-height: 130%;
    color: #E8E6E2;
}

.supplier-form-content {
    display: flex;
    flex-wrap: wrap;
    gap: 38px;
    align-items: flex-start;
}

.supplier-form-inputs {
    flex: 1;
    min-width: 300px;
    max-width: 448px;
}

.supplier-info-block {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

/* Form Elements */
.form-field {
    position: relative;
    margin-bottom: 27px;
}

.supplier-area {
    max-height: 114px !important;
    margin-bottom: 24px !important;
}

.form-field label {
    position: absolute;
    top: 16px;
    left: 22px;
    font-size: 16px;
    transition: all 0.2s ease;
    pointer-events: none;
    display: block;
    font-family: "Geologica", sans-serif;
    font-weight: 300 !important;
    font-size: 16px;
    color: #a9a7a3 !important;
    transition: color .3s linear !important;
}

.form-field label.active {
    top: -15px;
    left: 0;
    font-size: 10px;
    color: #e8e6e2;
}

.form-field input:focus+label,
.form-field input:not(:placeholder-shown)+label,
.form-field textarea:focus+label,
.form-field textarea:not(:placeholder-shown)+label {
    top: -15px;
    left: 0;
    font-size: 10px;
    color: #e8e6e2;
}

.form-field input:focus-visible,
.form-field textarea:focus-visible {
    outline: none !important;
}

.form-field input[type="text"],
.form-field input[type="tel"],
.form-field input[type="email"],
.form-field textarea {
    width: 100%;
    max-height: 50px;
    padding: 12px 20px;
    background-color: #fbfbfb;
    color: #272725;
    border-radius: 10px;
    font-family: "Geologica", sans-serif;
    font-weight: 300;
    font-size: 16px;
    box-sizing: border-box;
    transition: border .3s linear;
    border: 2px solid transparent;
}

.form-field:hover input {
    border: 2px solid #FFA800 !important;
}

/* Error label styles */
.form-field label.error,
.form-field label.error a {
    color: #F93428 !important;
}

/* Consent error style */
.consent-field.error input[type="checkbox"] {
    border: 2px solid #F93428;
}

.form-field textarea {
    min-height: 114px;
    resize: vertical;
}

/* Consent Field */
.consent-field {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 24px !important;
}

.consent-field input[type="checkbox"] {
    appearance: none;
    min-width: 20px;
    height: 20px;
    background-color: #fff;
    border: 2px solid transparent;
    border-radius: 3px;
    transition: background-color 0.3s linear, border 0.3s linear;
    cursor: pointer;
}

.consent-field:hover input[type="checkbox"] {
    border: 2px solid var(--hover) !important;
}

.consent-field input[type="checkbox"]:checked {
    background-color: #ffa800;
    border-color: #ffa800;
    position: relative;
}

.consent-field input[type="checkbox"]:checked::after {
    content: "";
    position: absolute;
    top: 2px;
    left: 6px;
    width: 5px;
    height: 10px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.consent-field label {
    position: static;
    color: #a9a7a3 !important;
    margin: 0;
    transition: none;
    cursor: pointer;
    pointer-events: auto;
    font-weight: 300 !important;
    font-size: 14px !important;
}

.consent-field a {
    text-decoration: underline !important;
    color: #e8e6e2 !important;
    transition: color .3s linear;
    cursor: pointer;
}

.consent-field a:hover {
    color: #ffa800 !important;
}


/* Submit Button */
.submit-field button {
    width: 100%;
    padding: 12px;
    background-color: #ffa800;
    font-weight: 400;
    font-size: 16px;
    line-height: 130%;
    text-align: center;
    color: #fbfbfb;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.submit-field button:focus {
    background-color: #ffa800 !important;
}

.submit-field button:hover {
    background-color: #e18701;
}

.submit-field button:disabled {
    background-color: #7a6943;
    cursor: not-allowed;
}

.submit-field {
    margin-bottom: 0 !important;
}

/* Form Messages */
.form-messages {
    margin-top: 15px;
}

.success-message {
    padding: 10px;
    background-color: rgba(39, 174, 96, 0.2);
    border-left: 3px solid #27ae60;
    color: #2ecc71;
}

.error-message {
    padding: 10px;
    background-color: rgba(231, 76, 60, 0.2);
    border-left: 3px solid #e74c3c;
    color: #e74c3c;
}

/* Supplier Info Block */
.supplier-info-block h3 {
    font-weight: 400;
    font-size: 16px;
    line-height: 130%;
    color: var(--text-4-svetlyy-dlya-temnogo);
}

.supplier-email a {
    font-weight: 300;
    font-size: 16px;
    line-height: 130%;
    color: #e8e6e2;
    transition: color .3s linear;
    display: flex;
    align-items: center;
    text-decoration: none;
}

.supplier-email:hover a {
    color: #e18701;
}

.supplier-email svg {
    stroke: #FFA800;
    width: 24px;
    height: 24px;
    margin-right: 6px;
    transition: stroke .3s linear;
}

.supplier-email:hover svg {
    stroke: #e18701;
}

.field-help-text {
    font-weight: 300;
    font-size: 10px;
    color: #F93428;
}

@media screen and (max-width: 1023px) {
    .supplier-form-container {
        padding: 30px;
    }

    .supplier-form-header h2 {
        font-size: 30px;
    }

    .supplier-form-content {
        gap: 20px;
    }
}
    

@media screen and (max-width: 767px) {
    .supplier-form-content {
        flex-direction: column;
    }

    .supplier-form-container {
        padding: 16px;
    }

    .supplier-form-inputs {
        max-width: 100% !important;
        min-width: 100%;
    }

    .supplier-form-header h2 {
        font-size: 26px;
        margin-bottom: 10px !important; 
    }
    
    .supplier-image {
        min-height: 276px;
    }

    .supplier-info-block {
        width: 100%;
    }
}

@media screen and (max-width: 550px) {
       
    .supplier-image {
        min-height: 176px;
    }
}