/* Customer info block */
.order-form .form .block {
  margin-bottom: 45px;
}

.order-form .form h5 {
  font-weight: 700;
  margin-bottom: 25px;
}

.order-form .form label {
  font-family: 'Geologica', sans-serif;
  font-weight: 700;
  font-size: 18px;
  line-height: 100%;
  letter-spacing: -0.74px;
  color: #073248;
  margin-bottom: 16px; /* отступ до инпутов: 16px */
  display: block;
}

.order-form .form label.form-control-label {
  font-weight: 700;
}

.order-form .form input,
.order-form .form select,
.order-form .form textarea {
    background-color: #E1ECF5;
    border-radius: 16px;
    padding: 12px 16px;
    height: 54px !important;
    min-height: 54px !important;
    border: none;
    outline: none;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    font-family: 'Geologica', sans-serif;
    font-size: 15px;
    font-weight: 500;
    color: #073248;
}

.order-form .form input::placeholder,
.order-form .form textarea::placeholder {
    color: rgba(7, 50, 72, 0.5);
    opacity: 1;
}

/* Custom Dropdown arrow */
.order-form .form select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='16' height='9' viewBox='0 0 16 9' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L8 8L15 1' stroke='%23073248' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 14px;
    padding-right: 40px;
    cursor: pointer;
}

/* Style select when placeholder option is active */
.order-form .form select:invalid,
.order-form .form select:has(option[value=""]:checked),
.order-form .form select:has(option[disabled]:checked) {
    color: rgba(7, 50, 72, 0.5);
}

.order-form .form select option {
    color: #073248;
    background-color: #fff;
}

.order-form .form .contact_us_form {
    display: flex;
    flex-flow: row wrap;
    margin-left: -11px;
    margin-right: -11px;
}

.order-form .form .contact_us_form .form-group {
    padding-left: 11px;
    padding-right: 11px;
    margin-bottom: 30px; /* Vertical gap between fields */
}

/* Date of Birth split selector styling */
.order-form .dob-selectors {
    display: flex;
    gap: 10px; /* Horizontal gap of 10px */
    max-width: 356px;
    width: 100%;
}

.order-form .dob-selectors select,
.order-form select#dob-day.form-control,
.order-form select#dob-month.form-control,
.order-form select#dob-year.form-control {
    min-width: 0;
    max-width: none;
    height: 54px !important;
    min-height: 54px !important;
}

.order-form #dob-day {
    flex: 0 0 80px;
}

.order-form #dob-month {
    flex: 1 1 auto;
}

.order-form #dob-year {
    flex: 0 0 100px;
}

.order-form .form .custom-checkbox .custom-control-input {
  width: 24px;
}

.order-form .form .custom-checkbox .custom-control-label {
  font-weight: 400;
}

.order-form .form h3,
.order-form .order-header-wrap h3 {
   font-family: 'Geologica', sans-serif;
   font-weight: 700;
   font-size: 26px;
   line-height: 30px;
   letter-spacing: -1.2px;
   vertical-align: middle;
   color: #073248;
   margin-bottom: 6px; /* отступ от данных заказчика до красного текста: 6px */
}

.order-form .form h4,
.order-form .order-header-wrap h4 {
    font-family: 'Geologica', sans-serif;
    font-weight: 500;
    font-size: 16px;
    line-height: 20px;
    letter-spacing: -0.74px;
    color: #EF6860;
    margin-top: 0;
    margin-bottom: 30px; /* отступ к полям: 30px */
    text-transform: none;
}

.order-form .order-header-wrap h4 {
    margin-bottom: 0; /* reset margin-bottom to 0 since wrapper has margin-bottom */
}

.order-form .form .submit_btn {
    background: #EF6860;
    border-radius: 12px;
    width: 300px;
    height: 54px;
    color: white;
    font-weight: 700;
    font-size: 16px;
    border: none;
    cursor: pointer;
    margin-top: 30px;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    transform: translateY(0);
}

.order-form .form .submit_btn:hover {
    background: #f17c75;
    box-shadow: 0 8px 20px rgba(239, 104, 96, 0.3);
    transform: translateY(-2px);
}

.order-form .form .submit_btn:active {
    transform: translateY(1px) scale(0.98);
    box-shadow: 0 2px 5px rgba(239, 104, 96, 0.2);
}

.text-danger {
    color: #EF6860;
    font-size: 13px;
    margin-top: 5px;
    display: block;
}

/* Additional Data Section */
.order-form .form .contact_us_form .form-group.extra-data-section {
    margin-top: 30px;
    margin-bottom: 5px;
}

.order-form .form .contact_us_form .form-group.extra-data-group {
    margin-bottom: 20px;
}

.order-form .extra-data-title {
    font-family: 'Geologica', sans-serif;
    font-weight: 700;
    font-size: 26px;
    line-height: 30px;
    letter-spacing: -1.2px;
    color: #073248;
    margin-bottom: 0;
}

.order-form .extra-data-card {
    background: #FAFCFD;
    border: none;
    box-shadow: 7px 7px 21px 0px #D1D9EB;
    border-radius: 16px;
    padding: 30px; /* Padding внутри карточки: 30px */
    margin-bottom: 20px;
    box-sizing: border-box;
    transition: all 0.3s ease;
}

.order-form .card-header-clickable {
    display: flex;
    flex-direction: column;
    cursor: pointer;
}

.order-form .card-title {
    font-family: 'Geologica', sans-serif;
    font-weight: 700;
    font-size: 18px;
    line-height: 100%;
    letter-spacing: -0.74px;
    color: #073248;
    margin-top: 0;
    margin-bottom: 0;
    text-transform: none;
}

.order-form .card-desc {
    font-family: 'Geologica', sans-serif;
    font-weight: 500;
    font-size: 16px;
    line-height: 20px;
    letter-spacing: -0.74px;
    color: #073248;
    margin-top: 14px; /* Отступ до описания: 14px */
    margin-bottom: 0;
    max-width: 268px;
}

.order-form .card-trigger-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 28px; /* Отступ до кнопки заполнить: 28px */
    width: 100%;
}

.order-form .card-trigger-row .trigger-text {
    font-family: 'Geologica', sans-serif;
    font-weight: 600;
    font-size: 16px;
    line-height: 27px;
    letter-spacing: -0.74px;
    color: #0083DA;
}

.order-form .card-trigger-row .chevron-icon {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-top: 2.5px solid #0083DA;
    border-right: 2.5px solid #0083DA;
    transform: rotate(45deg);
    transition: transform 0.2s ease, border-color 0.2s ease;
    margin-top: -2px;
}

.order-form .extra-data-card.active .card-trigger-row .chevron-icon {
    transform: rotate(135deg);
    margin-top: -5px;
}

.order-form .card-fields-expanded {
    margin-top: 24px;
    border-top: 1px dashed #E1ECF5;
    padding-top: 24px;
}

@media (min-width: 768px) {
    .order-form .card-fields-expanded label {
        min-height: 38px;
        display: flex;
        align-items: flex-end;
    }
}

/* Terms and Submit Button Row */
.order-form .terms-submit-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 40px;
    flex-wrap: wrap;
    gap: 20px;
}

.order-form .terms-submit-row .submit_btn {
    margin-top: 0;
    flex-shrink: 0;
}

@media (max-width: 767px) {
    .order-form .terms-submit-row {
        flex-direction: column;
        align-items: flex-start;
    }
    .order-form .form .submit_btn {
        width: 100%;
    }
}

/* Custom Checkbox */
.order-form .terms-checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    user-select: none;
    margin-bottom: 0;
}

.order-form .terms-checkbox-input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.order-form .custom-checkbox-box {
    height: 24px;
    width: 24px;
    background-color: #E1ECF5;
    border-radius: 6px;
    display: inline-block;
    margin-right: 12px;
    position: relative;
    transition: background-color 0.2s ease, border-color 0.2s ease;
    flex-shrink: 0;
}

.order-form .terms-checkbox-label:hover .custom-checkbox-box {
    background-color: #d0e2f0;
}

.order-form .terms-checkbox-input:checked ~ .custom-checkbox-box {
    background-color: #0083DA;
}

.order-form .custom-checkbox-box::after {
    content: "";
    position: absolute;
    display: none;
    left: 9px;
    top: 5px;
    width: 6px;
    height: 11px;
    border: solid white;
    border-width: 0 2.5px 2.5px 0;
    transform: rotate(45deg);
}

.order-form .terms-checkbox-input:checked ~ .custom-checkbox-box::after {
    display: block;
}

.order-form .terms-checkbox-label .checkbox-text {
    font-family: 'Geologica', sans-serif;
    font-weight: 500;
    font-size: 15px;
    line-height: 20px;
    color: #073248;
    max-width: 252px !important;
    display: inline-block !important;
    white-space: normal !important;
}

.order-form .terms-checkbox-label .terms-link {
    color: #0083DA;
    font-weight: 700;
    text-decoration: none;
}

.order-form .terms-checkbox-label .terms-link:hover {
    text-decoration: underline;
}

/* Wizard Default Desktop Hidden Elements */
.order-form .mobile-step-header,
.order-form .mobile-next-row,
.order-form .mobile-back-link-wrap {
    display: none;
}

/* Mobile & Tablet Specific Form Adapting */
@media (max-width: 1199px) {
    /* Hide desktop headers */
    .order-form .order-header-wrap,
    .order-form .form .contact_us_form .form-group.extra-data-section {
        display: none;
    }
    
    /* Show mobile headers & navigation */
    .order-form .mobile-step-header {
        display: block;
        margin-top: 12px !important; /* Отступ шага от хедера: 12px */
        margin-bottom: 0;
        text-align: left;
    }
    .order-form .mobile-step-header .step-badge {
        display: flex !important;
        position: relative !important;
        width: 100% !important;
        align-items: center !important;
        justify-content: center !important;
        height: 50px !important;
        background: #DCEDF9 !important;
        border-radius: 19px !important;
        font-family: 'Geologica', sans-serif !important;
        font-weight: 700 !important;
        font-size: 18px !important;
        leading-trim: none !important;
        line-height: 30px !important;
        letter-spacing: -0.83px !important;
        color: #073248 !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        margin-bottom: 30px !important;
        box-sizing: border-box !important;
    }
    .order-form .mobile-step-header .step-back-btn {
        display: inline-flex !important;
        position: absolute !important;
        left: 20px !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
        align-items: center !important;
        justify-content: center !important;
        color: #073248 !important;
        text-decoration: none !important;
        margin-right: 0 !important;
        font-size: 20px !important;
        font-weight: 700 !important;
        cursor: pointer !important;
        padding: 5px !important;
        transition: transform 0.2s ease !important;
    }
    .order-form .mobile-step-header .step-back-btn:hover {
        transform: translateY(-50%) translateX(-3px) !important;
    }
    .order-form .mobile-step-header .step-title {
        font-family: 'Geologica', sans-serif;
        font-weight: 700;
        font-size: 26px;
        line-height: 30px;
        letter-spacing: -1.2px;
        color: #073248;
        text-align: left;
        margin-bottom: 13px;
        margin-top: 0;
    }
    .order-form .mobile-step-header .step-subtitle {
        font-family: 'Geologica', sans-serif;
        font-weight: 500;
        font-size: 16px;
        line-height: 20px;
        letter-spacing: -0.74px;
        color: #EF6860;
        margin-bottom: 40px !important;
        margin-top: 0;
        display: block;
    }
    .order-form .mobile-step-header.step-2-active .step-subtitle {
        display: none;
    }
    .order-form .mobile-step-header.step-2-active .step-title {
        margin-bottom: 40px !important;
    }
    
    .order-form .form .contact_us_form .form-group.empty-spacer {
        display: none;
    }
    .order-form .form .contact_us_form .form-group.title-group {
        margin-bottom: 16px;
    }
    .order-form .form .contact_us_form .form-group.lastname-group {
        margin-bottom: 16px;
    }
    .order-form .form .contact_us_form .form-group.firstname-group {
        margin-bottom: 38px;
    }
    
    .order-form .mobile-next-row {
        display: flex;
        justify-content: center;
        width: 100%;
        margin-top: 10px;
        margin-bottom: 10px;
    }
    
    .order-form .next_btn {
        background: #EF6860;
        border-radius: 12px;
        width: 300px;
        height: 54px;
        color: white;
        font-weight: 700;
        font-size: 16px;
        border: none;
        cursor: pointer;
        transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
        transform: translateY(0);
    }
    .order-form .next_btn:hover {
        background: #f17c75;
        box-shadow: 0 8px 20px rgba(239, 104, 96, 0.3);
        transform: translateY(-2px);
    }
    .order-form .next_btn:active {
        transform: translateY(1px) scale(0.98);
        box-shadow: 0 2px 5px rgba(239, 104, 96, 0.2);
    }
    
    .order-form .mobile-back-link-wrap {
        display: block;
        width: 100%;
        margin-bottom: 24px;
        text-align: left;
    }
    .order-form .mobile-back-link {
        color: #748E9E;
        font-family: 'Geologica', sans-serif;
        font-weight: 500;
        font-size: 15px;
        text-decoration: none;
        transition: color 0.2s ease;
    }
    .order-form .mobile-back-link:hover {
        color: #073248;
        text-decoration: underline;
    }
    
    /* Step Containers */
    .order-form .form-step-container {
        display: none;
        width: 100%;
    }
    .order-form .form-step-container.active {
        display: block;
    }
}

@media (max-width: 767px) {
    .order-form .extra-data-card {
        padding: 20px;
        margin-bottom: 0;
    }
    .order-form .extra-data-title {
        font-size: 22px;
        line-height: 26px;
        letter-spacing: -0.8px;
    }
    .order-form .next_btn {
        width: 100%;
    }
}

@media (max-width: 479px) {
    .order-form .dob-selectors {
        flex-direction: column;
        max-width: 100%;
        gap: 16px;
    }
    .order-form #dob-day,
    .order-form #dob-month,
    .order-form #dob-year {
        flex: 1 1 100%;
        width: 100%;
        height: 54px !important;
        min-height: 54px !important;
    }
}

.order-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 480px;
    margin: 80px auto;
    padding: 0 20px;
}

.order-empty-state__title {
    font-family: 'Geologica', sans-serif;
    font-weight: 700;
    font-size: 26px;
    line-height: 30px;
    letter-spacing: -1.2px;
    color: #073248;
    margin: 0 0 12px;
}

.order-empty-state__message {
    font-family: 'Geologica', sans-serif;
    font-weight: 500;
    font-size: 16px;
    line-height: 22px;
    color: #073248;
    opacity: 0.7;
    margin: 0 0 30px;
}

.order-empty-state__cta {
    display: inline-block;
    background: #EF6860;
    border-radius: 12px;
    padding: 16px 32px;
    color: white;
    font-family: 'Geologica', sans-serif;
    font-weight: 700;
    font-size: 16px;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    transform: translateY(0);
}

.order-empty-state__cta:hover {
    background: #f17c75;
    box-shadow: 0 8px 20px rgba(239, 104, 96, 0.3);
    transform: translateY(-2px);
    color: white;
}