/* Appointment Booking Form Styles */

.appointment-booking-wrapper {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px;
    background: #000F1E;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.appointment-booking-form {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.form-row {
    margin-bottom: 24px;
}

.form-row-two {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    color: #E6F6FF;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
    display: block;
}

.form-group .required {
    color: #E94B3C;
    margin-left: 4px;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group input[type="date"],
.form-group input[type="time"],
.form-group select,
.form-group textarea {
    background: #07111A;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 6px;
    padding: 12px 16px;
    color: #E6F6FF;
    font-size: 16px;
    font-family: inherit;
    width: 100%;
    box-sizing: border-box;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #1A8BD6;
    box-shadow: 0 0 0 4px rgba(26, 139, 214, 0.12);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(230, 246, 255, 0.5);
}

.form-group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23E6F6FF' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.field-hint {
    font-size: 12px;
    color: rgba(230, 246, 255, 0.6);
    margin-top: 6px;
}

.char-count {
    font-size: 12px;
    color: rgba(230, 246, 255, 0.6);
    margin-top: 6px;
    text-align: right;
}

.radio-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.radio-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    color: #E6F6FF;
    font-size: 14px;
}

.radio-label input[type="radio"] {
    margin-right: 10px;
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #1A8BD6;
}

.checkbox-group {
    margin-top: 8px;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    color: #E6F6FF;
    font-size: 14px;
    line-height: 1.5;
}

.checkbox-label input[type="checkbox"] {
    margin-right: 10px;
    margin-top: 2px;
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #1A8BD6;
    flex-shrink: 0;
}

.checkbox-label a {
    color: #1A8BD6;
    text-decoration: underline;
}

.checkbox-label a:hover {
    color: #4da3e0;
}

.submit-btn {
    background: #1A8BD6;
    color: #FFFFFF;
    border: none;
    border-radius: 6px;
    padding: 14px 32px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    font-family: inherit;
}

.submit-btn:hover:not(:disabled) {
    background: #1570a8;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(26, 139, 214, 0.3);
}

.submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}


.form-messages {
    margin-top: 20px;
    padding: 12px 16px;
    border-radius: 6px;
    display: none;
}

.form-messages.error {
    background: rgba(233, 75, 60, 0.15);
    border: 1px solid #E94B3C;
    color: #E94B3C;
    display: block;
}

.form-messages.success {
    background: rgba(26, 139, 214, 0.15);
    border: 1px solid #1A8BD6;
    color: #1A8BD6;
    display: block;
}

/* Input validation states */
.form-group input.error,
.form-group select.error,
.form-group textarea.error {
    border-color: #E94B3C;
}

.form-group .error-message {
    color: #E94B3C;
    font-size: 12px;
    margin-top: 6px;
    display: block;
}

/* Modal Styles */
.appointment-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 15, 30, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 20px;
    box-sizing: border-box;
}

.modal-content {
    background: #071423;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    max-width: 500px;
    width: 100%;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

.modal-header {
    padding: 24px 24px 0;
}

.modal-header h2 {
    color: #E6F6FF;
    font-size: 24px;
    margin: 0;
}

.modal-body {
    padding: 24px;
}

.success-message {
    color: #E6F6FF;
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 12px;
}

.success-message strong {
    color: #1A8BD6;
}

.success-subtext {
    color: rgba(230, 246, 255, 0.7);
    font-size: 14px;
    margin: 0;
}

.modal-footer {
    padding: 0 24px 24px;
    text-align: right;
}

.modal-close-btn {
    background: #1A8BD6;
    color: #FFFFFF;
    border: none;
    border-radius: 6px;
    padding: 10px 24px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

.modal-close-btn:hover {
    background: #1570a8;
}

/* Date and Time Input Wrappers */
.date-input-wrapper,
.time-input-wrapper {
    position: relative;
}

.date-input-wrapper input[type="date"],
.time-input-wrapper input[type="time"] {
    position: relative;
    z-index: 2;
    cursor: pointer;
    padding-right: 40px;
}

/* Make date/time input icons white */
.date-input-wrapper input[type="date"]::-webkit-calendar-picker-indicator,
.time-input-wrapper input[type="time"]::-webkit-calendar-picker-indicator {
    filter: invert(1);
    opacity: 0.8;
    cursor: pointer;
}

.date-input-wrapper input[type="date"]::-webkit-calendar-picker-indicator:hover,
.time-input-wrapper input[type="time"]::-webkit-calendar-picker-indicator:hover {
    opacity: 1;
}

.date-display,
.time-display {
    display: block;
    margin-top: 8px;
    color: #1A8BD6;
    font-size: 14px;
    font-weight: 500;
    min-height: 20px;
}

.date-input-wrapper input[type="date"]:focus ~ .date-display,
.time-input-wrapper input[type="time"]:focus ~ .time-display {
    color: #1A8BD6;
}

/* Budget Options */
.optional-badge {
    color: rgba(230, 246, 255, 0.6);
    font-size: 12px;
    font-weight: normal;
}

.budget-group {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.budget-option {
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    padding: 16px;
    background: #07111A;
    transition: all 0.3s ease;
    cursor: pointer;
    margin: 0;
}

.budget-option:hover {
    border-color: #1A8BD6;
    background: rgba(26, 139, 214, 0.1);
}

.budget-option input[type="radio"] {
    display: none;
}

.budget-option input[type="radio"]:checked + .budget-option-content {
    color: #1A8BD6;
}

.budget-option input[type="radio"]:checked ~ *,
.budget-option:has(input[type="radio"]:checked) {
    border-color: #1A8BD6;
    background: rgba(26, 139, 214, 0.15);
    box-shadow: 0 0 0 2px rgba(26, 139, 214, 0.2);
}

.budget-option-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.budget-amount {
    font-size: 18px;
    font-weight: 600;
    color: #E6F6FF;
}

.budget-label {
    font-size: 12px;
    color: rgba(230, 246, 255, 0.7);
}

.budget-option input[type="radio"]:checked + .budget-option-content .budget-amount,
.budget-option:has(input[type="radio"]:checked) .budget-amount {
    color: #1A8BD6;
}

/* File Upload Styles */
.file-upload-wrapper {
    position: relative;
}

.file-upload-wrapper input[type="file"] {
    position: absolute;
    width: 0.1px;
    height: 0.1px;
    opacity: 0;
    overflow: hidden;
    z-index: -1;
}

.file-upload-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    border: 2px dashed rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    background: #07111A;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    min-height: 120px;
}

.file-upload-label:hover,
.file-upload-label.drag-over {
    border-color: #1A8BD6;
    background: rgba(26, 139, 214, 0.1);
}

.file-upload-icon {
    font-size: 32px;
    margin-bottom: 12px;
    opacity: 0.7;
}

.file-upload-text {
    color: #E6F6FF;
    font-size: 14px;
    margin-bottom: 8px;
}

.file-upload-name {
    color: #1A8BD6;
    font-size: 13px;
    font-weight: 500;
    word-break: break-word;
    max-width: 100%;
}

.file-remove-btn {
    margin-top: 12px;
    padding: 8px 16px;
    background: rgba(233, 75, 60, 0.2);
    color: #E94B3C;
    border: 1px solid #E94B3C;
    border-radius: 6px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.file-remove-btn:hover {
    background: rgba(233, 75, 60, 0.3);
}

.file-progress {
    margin-top: 10px;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
}

.file-progress::after {
    content: '';
    display: block;
    height: 100%;
    background: #1A8BD6;
    width: 0%;
    transition: width 0.3s ease;
}

/* Responsive Design */
@media (max-width: 768px) {
    .appointment-booking-wrapper {
        padding: 20px 15px;
    }
    
    .appointment-booking-form {
        padding: 24px 20px;
    }
    
    .form-row-two {
        grid-template-columns: 1fr;
    }
    
    .modal-content {
        margin: 20px;
    }
    
    .budget-group {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .appointment-booking-form {
        padding: 20px 16px;
    }
    
    .form-group input[type="text"],
    .form-group input[type="email"],
    .form-group input[type="tel"],
    .form-group input[type="date"],
    .form-group input[type="time"],
    .form-group select,
    .form-group textarea {
        font-size: 16px; /* Prevents zoom on iOS */
    }
}

