/* Variables */
:root {
    --brand-blue: #2e3ea8;
    --dark-gray: #222222;
    --light-gray: #6b7280;
    --border-color: #e5e7eb;
    --placeholder-color: #9ca3af;
    --bg-light: #f5f8fd;
}

/* Section Layout */
.contact-section {
    background-color: #f1f7ff;
    padding: 0px 200px;
    width: 100%;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Header Styles */
.contact-header {
    margin-bottom: 50px;
}

.header-line {
    width: 180px;
    height: 3px;
    background-color: var(--brand-blue);
    margin: 0 auto 25px;
}

.main-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--dark-gray);
    margin-bottom: 25px;
    line-height: 1.2;
    font-style: bold;
}

.brand-blue {
    color: var(--brand-blue);
    font-weight: 700;
}

.intro-text {
    max-width: 1000px;
    margin: 0 auto 20px;
    font-size: 18px;
    line-height: 1.8;
    color: var(--light-gray);
    font-family: "Manrope", sans-serif;
    font-weight: 500;
}

.contact-info {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
}

.info-link {
    color: var(--brand-blue);
    font-weight: 500;
    text-decoration: none;
}

.info-link:hover {
    color: var(--brand-blue);
    opacity: 1;
}

.separator {
    color: var(--brand-blue);
}

/* Form Card Styles */
.form-container {
    max-width: 1000px;
    margin: 0 auto;
}

.form-card {
    background: #ffffff;
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.05);
}

.form-header {
    margin-bottom: 35px;
}

.header-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 24px;
    font-weight: 800;
    color: var(--brand-blue);
}

.header-title i {
    font-size: 24px;
}

.title-divider {
    height: 1px;
    background-color: var(--brand-blue);
    margin-top: 20px;
    opacity: 0.3;
}

/* Custom Number Input Spinners */
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
    opacity: 1;
    height: 20px; /* Base height for scaling */
    cursor: pointer;
}

input[type="number"]::-webkit-inner-spin-button {
    transform: scale(1.3); /* Adjust scale to reach ~15px visual size */
    margin-right: 5px;
}

/* Form Fields */
.field-label {
    display: block;
    font-family: "Manrope", sans-serif;
    font-weight: 800;
    font-size: 20px;
    line-height: 21px;
    color: var(--dark-gray);
    margin-bottom: 12px;
    letter-spacing: 0;
}

::placeholder {
    font-family: "Manrope", sans-serif !important;
    font-weight: 500 !important;
    font-size: 20px !important;
    line-height: 21px !important;
    letter-spacing: 0 !important;
    color: #bebebe !important;
    opacity: 1; /* Firefox */
}

::-webkit-input-placeholder {
    font-family: "Manrope", sans-serif !important;
    font-weight: 500 !important;
    font-size: 20px !important;
    line-height: 21px !important;
    color: #bebebe !important;
}

::-moz-placeholder {
    font-family: "Manrope", sans-serif !important;
    font-weight: 500 !important;
    font-size: 20px !important;
    line-height: 21px !important;
    color: #bebebe !important;
}

:-ms-input-placeholder {
    font-family: "Manrope", sans-serif !important;
    font-weight: 500 !important;
    font-size: 20px !important;
    line-height: 21px !important;
    color: #bebebe !important;
}

:-moz-placeholder {
    font-family: "Manrope", sans-serif !important;
    font-weight: 500 !important;
    font-size: 20px !important;
    line-height: 21px !important;
    color: #bebebe !important;
}

.travelers-row {
    display: flex;
    gap: 20px;
}

.traveler-input {
    flex: 1;
    position: relative;
}

.main-travel-form .traveler-input input,
.main-travel-form .input-with-icon input,
.main-travel-form .form-input,
.main-travel-form .form-select,
.main-travel-form .form-textarea {
    width: 100% !important;
    height: 70px !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 20px !important;
    padding: 10px 20px !important;
    font-size: 20px !important;
    font-weight: 500 !important;
    transition: all 0.3s ease;
    background-color: #fff !important;
    color: var(--dark-gray) !important;
    font-family: "Manrope", sans-serif !important;
}

/* Select Placeholder Logic */
.main-travel-form .form-select {
    color: #bebebe !important;
    appearance: none !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%232E3EA8'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 20px center !important;
    background-size: 18px !important;
    padding-right: 45px !important;
    cursor: pointer;
}

.main-travel-form .form-select:valid {
    color: var(--dark-gray) !important;
}

.main-travel-form .form-select option {
    color: var(--dark-gray);
    font-size: 16px;
}

.main-travel-form .form-select option[disabled] {
    color: #bebebe;
}

.input-desc {
    display: block;
    font-size: 12px;
    color: var(--light-gray);
    margin-top: 5px;
    text-align: center;
}

.input-with-icon {
    position: relative;
}

.input-with-icon i {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--brand-blue);
    pointer-events: none;
}

input:focus,
textarea:focus {
    outline: none;
    border-color: var(--brand-blue);
    box-shadow: 0 0 0 3px rgba(46, 62, 168, 0.05);
}

/* Checkbox Groups */
.group-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--dark-gray);
    margin-bottom: 20px;
}

.checkbox-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

/* Custom Checkbox */
.custom-checkbox {
    display: flex;
    align-items: center;
    position: relative;
    padding-left: 35px;
    cursor: pointer;
    font-size: 15px;
    color: #4b5563;
    user-select: none;
    min-height: 24px;
}

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

.checkmark {
    position: absolute;
    top: 0;
    left: 0;
    height: 22px;
    width: 22px;
    background-color: #fff;
    border: 2px solid var(--border-color);
    border-radius: 6px;
    transition: all 0.2s ease-in-out;
}

.custom-checkbox:hover input ~ .checkmark {
    border-color: var(--brand-blue);
}

.custom-checkbox input:checked ~ .checkmark {
    background-color: var(--brand-blue);
    border-color: var(--brand-blue);
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

.custom-checkbox input:checked ~ .checkmark:after {
    display: block;
}

.custom-checkbox .checkmark:after {
    left: 7px;
    top: 3px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.name-row {
    display: flex;
    gap: 20px;
}

.name-row .title-select {
    flex: 0 0 calc(30% - 10px) !important;
    width: auto !important;
}

.name-row .form-input {
    flex: 0 0 calc(70% - 10px) !important;
}

.checkbox-text {
    line-height: 1.4;
}

/* Custom Radio */
.radio-vertical-list,
.checkbox-vertical-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.custom-radio {
    display: flex;
    align-items: center;
    position: relative;
    padding-left: 35px;
    cursor: pointer;
    font-size: 15px;
    color: #4b5563;
    user-select: none;
    min-height: 24px;
}

.custom-radio input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.radio-mark {
    position: absolute;
    top: 0;
    left: 0;
    height: 22px;
    width: 22px;
    background-color: #fff;
    border: 2px solid var(--border-color);
    border-radius: 50%;
    transition: all 0.2s ease-in-out;
}

.custom-radio:hover input ~ .radio-mark {
    border-color: var(--brand-blue);
}

.custom-radio input:checked ~ .radio-mark {
    border-color: var(--brand-blue);
}

.radio-mark:after {
    content: "";
    position: absolute;
    display: none;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--brand-blue);
}

.custom-radio input:checked ~ .radio-mark:after {
    display: block;
}

/* Footer Notes */
.form-footer-notes {
    border-top: 1px solid var(--border-color);
    padding-top: 30px;
}

.note-item {
    font-size: 14px;
    color: var(--light-gray);
    margin-bottom: 8px;
    line-height: 1.6;
}

.required-star {
    color: #ef4444;
    font-weight: 700;
}

.brand-link {
    color: var(--brand-blue);
    text-decoration: none;
    font-weight: 800;
}

/* SEND Button */
.btn-send {
    height: 48px;
    padding: 0 40px;
    background-color: var(--brand-blue);
    color: #ffffff;
    border: none;
    border-radius: 999px;
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(46, 62, 168, 0.2);
}

.btn-send:hover {
    background-color: #1e2b8a;
    transform: translateY(-2px);
    box-shadow: 0 12px 25px rgba(46, 62, 168, 0.3);
}

.btn-send .arrow {
    transition: transform 0.3s ease;
}

.btn-send:hover .arrow {
    transform: translateX(4px);
}

/* Helper Classes */
.mt-15 {
    margin-top: 15px;
}
.mt-40 {
    margin-top: 40px;
}
.flex-grow-1 {
    flex-grow: 1;
}

/* Scoped styles for other sections on contact page */
.page-contact .box-confiance {
    background-color: #f1f7ff !important;
}

/* Responsive */
@media (max-width: 767px) {
    .name-row {
        flex-direction: column;
    }
    .title-select {
        width: 100%;
    }
    .btn-send {
        width: 100%;
        justify-content: center;
    }
}
