/* ============================================
   INQUIRY MODAL - MINIMALIST DESIGN
   Clean, spacious, modern aesthetic
   ============================================ */

/* Modal Overlay */
.inquiry-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 20px;
    animation: fadeIn 0.2s ease;
}

/* Modal Container */
.inquiry-modal-container {
    background: white;
    border-radius: 24px;
    width: 100%;
    max-width: 680px;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
    animation: slideUp 0.3s ease;
}

/* Modal Header */
.inquiry-modal-header {
    padding: 40px 40px 32px 40px;
    border-bottom: 1px solid #f0f0f0;
    position: relative;
}

.inquiry-modal-title {
    font-size: 28px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0;
    letter-spacing: -0.5px;
}

.inquiry-modal-subtitle {
    font-size: 15px;
    color: #666;
    margin: 8px 0 0 0;
    font-weight: 400;
}

/* Close Button */
.inquiry-modal-close {
    position: absolute;
    top: 32px;
    right: 32px;
    background: #f5f5f5;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 20px;
    color: #666;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.inquiry-modal-close:hover {
    background: #e0e0e0;
    color: #333;
    transform: scale(1.05);
}

/* Modal Body */
.inquiry-modal-body {
    padding: 32px 40px;
    overflow-y: auto;
    overflow-x: hidden;
    flex: 1;
    max-height: calc(90vh - 120px);
}

/* Form Container */
.inquiry-form {
    padding: 24px;
    border-radius: 16px;
}

/* Form Field */
.form-field {
    margin-bottom: 28px;
}

.form-field:last-child {
    margin-bottom: 0;
}

.form-label,
.form-field label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
}

.form-label .required,
.form-field label .required {
    color: #ff6b6b;
    margin-left: 2px;
}

/* Text Inputs */
.form-input,
.form-textarea,
.form-select,
.inquiry-form input[type="text"],
.inquiry-form input[type="number"],
.inquiry-form textarea,
.inquiry-form select {
    width: 100%;
    padding: 14px 16px;
    font-size: 15px;
    color: #1a1a1a;
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    transition: all 0.2s ease;
    font-family: inherit;
}

.form-input:hover,
.form-textarea:hover,
.form-select:hover,
.inquiry-form input[type="text"]:hover,
.inquiry-form input[type="number"]:hover,
.inquiry-form textarea:hover,
.inquiry-form select:hover {
    border-color: #ccc;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus,
.inquiry-form input[type="text"]:focus,
.inquiry-form input[type="number"]:focus,
.inquiry-form textarea:focus,
.inquiry-form select:focus {
    outline: none;
    background: white;
    border-color: #ff6b6b;
    box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.1);
}

.form-input::placeholder,
.form-textarea::placeholder,
.inquiry-form input::placeholder,
.inquiry-form textarea::placeholder {
    color: #999;
}

.form-textarea,
.inquiry-form textarea {
    resize: vertical;
    min-height: 100px;
}

/* Helper Text */
.helper-text {
    display: block;
    font-size: 13px;
    color: #888;
    margin-top: 6px;
}

/* Custom Select Dropdown */
.custom-select-wrapper {
    position: relative;
    display: block;
}

.custom-select {
    width: 100%;
    padding: 16px 45px 16px 16px;
    font-size: 15px;
    color: #1a1a1a;
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    font-family: inherit;
    line-height: 1.6;
    min-height: 52px;
    height: auto;
    background-image: none;
    vertical-align: middle;
}

.custom-select::-ms-expand {
    display: none;
}

.custom-select:hover {
    border-color: #ccc;
}

.custom-select:focus {
    outline: none;
    background: white;
    border-color: #ff6b6b;
    box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.1);
}

.custom-select option {
    padding: 10px;
    background: white;
    color: #1a1a1a;
}

/* Select Arrow Icon */
.select-arrow {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: #666;
    transition: color 0.2s ease;
}

.custom-select-wrapper:hover .select-arrow {
    color: #333;
}

.custom-select:focus ~ .select-arrow {
    color: #ff6b6b;
}

/* Date Range Inputs */
.date-range-container {
    width: 100%;
    margin-bottom: 0;
}

.date-range-inputs {
    display: none;
}

.selected-dates {
    display: none;
}

.date-input-wrapper {
    width: 100%;
    position: relative;
    margin-bottom: 12px;
}

.date-input-wrapper:last-child {
    margin-bottom: 0;
}

.date-input-field,
.date-input {
    width: 100%;
    padding: 14px 16px;
    font-size: 15px;
    color: #1a1a1a;
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 500;
}

.date-input-field:hover,
.date-input:hover {
    border-color: #ccc;
}

.date-input-field:focus,
.date-input:focus {
    outline: none;
    background: white;
    border-color: #ff6b6b;
    box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.1);
}

.date-input-icon {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    pointer-events: none;
}

.date-range-separator,
.date-separator {
    display: none;
}

/* Custom Calendar Styles */
.custom-calendar {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    width: 100%;
}

.calendar-header {
    background: white;
    color: #333;
    padding: 12px 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #f0f0f0;
}

.calendar-header button {
    background: transparent;
    border: none;
    color: #ccc;
    width: 26px;
    height: 26px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: all 0.2s ease;
}

.calendar-header button:hover {
    background: #f5f5f5;
    color: #666;
}

.calendar-month-year {
    font-size: 15px;
    font-weight: 700;
    color: #1a1a1a;
    letter-spacing: -0.3px;
}

.calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    background: #fafafa;
    padding: 4px 6px;
    gap: 2px;
}

.calendar-weekday {
    text-align: center;
    font-size: 13px;
    font-weight: 600;
    color: #666;
    padding: 4px 0;
}

.calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    padding: 2px 6px 6px;
    gap: 2px;
}

.calendar-day {
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 2px solid transparent;
    background: white;
}

.calendar-day:not(.disabled):not(.other-month):hover {
    background: #fff5f5;
    color: #ff6b6b;
}

.calendar-day.today {
    border: 2px solid #ff6b6b;
}

.calendar-day.selected {
    background: #ff6b6b !important;
    color: white !important;
    border-color: #ff6b6b !important;
}

.calendar-day.in-range {
    background: rgba(255, 107, 107, 0.15) !important;
    color: #333 !important;
}

.calendar-day.in-range-preview {
    background: rgba(255, 107, 107, 0.08) !important;
    color: #666 !important;
}

.calendar-day.selected-preview {
    background: rgba(255, 107, 107, 0.5) !important;
    color: white !important;
    border-color: #ff6b6b !important;
}

.calendar-day.disabled {
    color: #ddd;
    cursor: not-allowed;
    opacity: 0.5;
}

.calendar-day.other-month {
    visibility: hidden;
}

/* Crew Size Cards */
.crew-size-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.crew-size-card {
    position: relative;
}

.crew-size-input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.crew-size-label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 16px 12px;
    background: #fafafa;
    border: 2px solid transparent;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}

.crew-size-label:hover {
    background: #f5f5f5;
    border-color: #ff6b6b;
}

.crew-size-input:checked + .crew-size-label {
    background: #ff6b6b;
    border-color: #ff6b6b;
    color: white;
}

.crew-size-number {
    font-size: 24px;
    font-weight: 700;
    color: #999;
    transition: color 0.2s ease;
}

.crew-size-input:checked + .crew-size-label .crew-size-number {
    color: white;
}

.crew-size-text {
    font-size: 14px;
    font-weight: 600;
    color: #666;
    transition: color 0.2s ease;
}

.crew-size-input:checked + .crew-size-label .crew-size-text {
    color: white;
}

/* Modal Footer */
.inquiry-modal-footer {
    padding: 24px 40px;
    border-top: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fafafa;
}

/* Form Footer */
.form-footer {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 2px solid #e8e8e8;
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.required-note {
    font-size: 13px;
    color: #888;
}

.required-note .required {
    color: #ff6b6b;
}

.modal-actions {
    display: flex;
    gap: 12px;
}

/* Buttons */
.btn {
    padding: 14px 32px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 140px;
}

.btn-secondary {
    background: white;
    color: #666;
    border: 2px solid #e0e0e0;
}

.btn-secondary:hover {
    background: #f9f9f9;
    border-color: #ccc;
    color: #333;
}

.btn-primary {
    background: linear-gradient(135deg, #ff6b6b 0%, #ff5252 100%);
    color: white;
    box-shadow: 0 4px 14px rgba(255, 107, 107, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.4);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    pointer-events: none;
}

.btn-cancel {
    background: white;
    color: #666;
    border: 2px solid #e0e0e0;
}

.btn-cancel:hover {
    background: #f5f5f5;
    border-color: #d0d0d0;
}

.btn-submit {
    background: #ff6b6b;
    color: white;
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.25);
}

.btn-submit:hover {
    background: #ff5252;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(255, 107, 107, 0.3);
}

.btn-submit:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Flatpickr Calendar Styling */
.flatpickr-calendar {
    width: 100% !important;
    max-width: 100% !important;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15) !important;
    border-radius: 16px !important;
    border: 1px solid #f0f0f0 !important;
    font-family: inherit !important;
    margin-top: 8px !important;
}

.flatpickr-calendar.inline {
    width: 100% !important;
    max-width: 100% !important;
}

.flatpickr-innerContainer {
    width: 100% !important;
}

.flatpickr-rContainer {
    width: 100% !important;
}

.flatpickr-days {
    width: 100% !important;
}

.dayContainer {
    width: 100% !important;
    min-width: 100% !important;
    max-width: 100% !important;
    min-height: 0 !important;
    max-height: none !important;
}

.flatpickr-days {
    width: 100% !important;
    overflow: hidden !important;
}

.flatpickr-calendar.inline .flatpickr-days {
    max-height: 350px !important;
}

.flatpickr-months {
    background: #ff6b6b !important;
    border-radius: 16px 16px 0 0 !important;
}

.flatpickr-month,
.flatpickr-current-month .flatpickr-monthDropdown-months,
.flatpickr-current-month input.cur-year {
    color: white !important;
    font-weight: 600 !important;
}

.flatpickr-prev-month,
.flatpickr-next-month {
    fill: white !important;
}

.flatpickr-prev-month:hover,
.flatpickr-next-month:hover {
    background: rgba(255, 255, 255, 0.2) !important;
}

.flatpickr-weekdays {
    background: #fafafa !important;
}

span.flatpickr-weekday {
    color: #666 !important;
    font-weight: 600 !important;
    font-size: 14px !important;
}

.flatpickr-day {
    height: 48px !important;
    line-height: 48px !important;
    max-width: 48px !important;
    border-radius: 8px !important;
    font-weight: 600 !important;
    font-size: 16px !important;
    transition: all 0.2s ease !important;
    margin: 2px !important;
}

.flatpickr-day:hover {
    background: #fff5f5 !important;
    border-color: #ffe5e5 !important;
    color: #ff6b6b !important;
}

.flatpickr-day.today {
    border: 2px solid #ff6b6b !important;
    font-weight: 700 !important;
}

.flatpickr-day.selected,
.flatpickr-day.startRange,
.flatpickr-day.endRange {
    background: #ff6b6b !important;
    border-color: #ff6b6b !important;
    color: white !important;
    font-weight: 700 !important;
}

.flatpickr-day.inRange {
    background: rgba(255, 107, 107, 0.15) !important;
    border-color: transparent !important;
    box-shadow: none !important;
    color: #333 !important;
}

.flatpickr-day.disabled {
    color: #ddd !important;
    opacity: 0.5 !important;
}

/* Hide dates from other months */
.flatpickr-day.nextMonthDay,
.flatpickr-day.prevMonthDay {
    display: none !important;
}

.flatpickr-day.flatpickr-disabled.nextMonthDay,
.flatpickr-day.flatpickr-disabled.prevMonthDay {
    display: none !important;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .inquiry-modal-container {
        max-width: 95%;
        border-radius: 20px;
    }

    .inquiry-modal-header {
        padding: 32px 24px 24px 24px;
    }

    .inquiry-modal-title {
        font-size: 24px;
    }

    .inquiry-modal-close {
        top: 24px;
        right: 24px;
    }

    .inquiry-modal-body {
        padding: 24px;
    }

    .inquiry-modal-footer {
        padding: 20px 24px;
        flex-direction: column;
        gap: 16px;
        align-items: stretch;
    }

    .modal-actions {
        width: 100%;
    }

    .btn {
        flex: 1;
    }

    .crew-size-grid {
        grid-template-columns: 1fr;
    }

    .date-range-inputs {
        flex-direction: column;
    }

    .date-range-separator {
        transform: rotate(90deg);
    }
}
