/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    /* background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); */
    background: linear-gradient(135deg, #39afe2 100%);
    min-height: 100vh;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

/* Header Styles */
header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

header h1 {
    color: #4a5568;
    font-size: 2rem;
    font-weight: 700;
}

header h1 i {
    color: #667eea;
    margin-right: 10px;
}

.auth-section {
    display: flex;
    align-items: center;
    gap: 15px;
}

#userInfo {
    color: #4a5568;
    font-weight: 500;
}

/* Main Content */
main {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.booking-form-container h2 {
    color: #4a5568;
    margin-bottom: 25px;
    text-align: center;
    font-size: 1.8rem;
    font-weight: 600;
}

/* Form Styles */
.appointment-form {
    display: grid;
    gap: 20px;
    background: #f0f8ff;
    padding: 25px;
    border-radius: 15px;
    border: 2px solid #667eea;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 8px;
    font-weight: 600;
    color: #4a5568;
    font-size: 0.95rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #fff;
    width: 100%;
    box-sizing: border-box;
}

/* Specific styling for date input */
input[type="date"] {
    position: relative;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding-right: 40px; /* Make room for calendar icon */
    -webkit-appearance: none;
    -moz-appearance: textfield;
    appearance: none;
    background: #fff url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><rect x="3" y="4" width="18" height="18" rx="2" ry="2"></rect><line x1="16" y1="2" x2="16" y2="6"></line><line x1="8" y1="2" x2="8" y2="6"></line><line x1="3" y1="10" x2="21" y2="10"></line></svg>') no-repeat right 12px center;
    background-size: 16px 16px;
}

/* Ensure date input shows calendar icon on webkit browsers */
input[type="date"]::-webkit-calendar-picker-indicator {
    cursor: pointer;
    opacity: 1;
    position: absolute;
    right: 12px;
    width: 16px;
    height: 16px;
    background: transparent;
}

/* Firefox date input styling */
input[type="date"]::-moz-focus-inner {
    border: 0;
    padding: 0;
}

/* Ensure proper sizing on all devices */
#appointmentDate {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    transform: translateY(-2px);
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

/* Address Row Layout */
.address-row {
    display: grid;
    grid-template-columns: 1fr 120px 100px;
    gap: 15px;
    margin-top: 0;
}

.address-row .form-group {
    margin-bottom: 0;
}

/* Responsive address row */
@media (max-width: 768px) {
    .address-row {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .address-row {
        gap: 15px;
    }
}

/* Ensure Steam Instructions field has proper styling */
#steamInstructionsGroup {
    display: flex;
    flex-direction: column;
    background: #f0fff4;
    padding: 15px;
    border-radius: 10px;
    border: 2px solid #48bb78;
}

#steamInstructionsGroup label {
    margin-bottom: 8px;
    font-weight: 600;
    color: #2d3748;
    font-size: 0.95rem;
}

#steamInstructionsGroup textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #48bb78;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #fff;
    resize: vertical;
    min-height: 80px;
}

#steamInstructionsGroup textarea:focus {
    outline: none;
    border-color: #38a169;
    box-shadow: 0 0 0 3px rgba(72, 187, 120, 0.1);
    transform: translateY(-2px);
}

#comforterInstructionsGroup {
    display: flex;
    flex-direction: column;
    background: #f0fff4;
    padding: 15px;
    border-radius: 10px;
    border: 2px solid #48bb78;
}

#comforterInstructionsGroup label {
    margin-bottom: 8px;
    font-weight: 600;
    color: #2d3748;
    font-size: 0.95rem;
}

#comforterInstructionsGroup textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #48bb78;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #fff;
    resize: vertical;
    min-height: 80px;
}

#comforterInstructionsGroup textarea:focus {
    outline: none;
    border-color: #38a169;
    box-shadow: 0 0 0 3px rgba(72, 187, 120, 0.1);
    transform: translateY(-2px);
}

#counterWrapper {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 15px;
    padding: 10px 0;
}

#comforterSizeWrapper {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 15px;
    padding: 10px 0;
}

#comforterSizeWrapper label {
    font-weight: 600;
    color: #4a5568;
    font-size: 0.95rem;
}
#comforterSizeWrapper select {
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #fff;
}
#comforterSizeWrapper select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    transform: translateY(-2px);
}

#comforterSizeWrapper textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #48bb78;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #fff;
    resize: vertical;
    min-height: 80px;
}


/* Checkbox Group Styles */
.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 10px;
}

.checkbox-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 15px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    background: #fff;
    transition: all 0.3s ease;
    cursor: pointer;
}

.checkbox-item:hover {
    border-color: #667eea;
    background: #f7fafc;
    transform: translateY(-1px);
}

.checkbox-item input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin: 0;
    cursor: pointer;
    accent-color: #667eea;
}

.checkbox-item label {
    margin: 0;
    cursor: pointer;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.checkbox-item label i {
    color: #667eea;
    margin-right: 8px;
    font-size: 1.1rem;
}

.service-description {
    font-size: 0.85rem;
    color: #718096;
    font-weight: 400;
    line-height: 1.4;
}

.checkbox-item input[type="checkbox"]:checked + label {
    color: #4a5568;
    font-weight: 600;
}

.checkbox-item input[type="checkbox"]:checked + label i {
    color: #48bb78;
}

.checkbox-item:has(input[type="checkbox"]:checked) {
    border-color: #48bb78;
    background: #f0fff4;
}

/* Time Slots */
.time-slots {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 10px;
    margin-top: 10px;
}

.time-slot {
    padding: 15px 20px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    font-weight: 500;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.time-slot:hover {
    border-color: #667eea;
    background: #f7fafc;
    transform: translateY(-2px);
}

.time-slot.selected {
    border-color: #667eea;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.time-slot.unavailable {
    background: #f7fafc;
    color: #a0aec0;
    cursor: not-allowed;
    border-color: #e2e8f0;
}

.time-slot.unavailable:hover {
    transform: none;
    border-color: #e2e8f0;
    background: #f7fafc;
}

.time-label {
    font-size: 16px;
    font-weight: 600;
}

.time-status {
    font-size: 12px;
    opacity: 0.8;
    font-weight: 400;
}

.time-slot.available .time-status {
    color: #48bb78;
}

.time-slot.fully-booked .time-status {
    color: #e53e3e;
    font-weight: 500;
}

.time-slot.calendar-conflict .time-status,
.time-slot.past-time .time-status {
    color: #ed8936;
}

.time-slot.selected .time-status {
    color: rgba(255, 255, 255, 0.9);
}

.no-times {
    grid-column: 1 / -1;
    text-align: center;
    color: #718096;
    font-style: italic;
    padding: 20px;
}

/* Button Styles */
.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    justify-content: center;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
}

.btn-outline {
    background: transparent;
    color: #667eea;
    border: 2px solid #667eea;
}

.btn-outline:hover {
    background: #667eea;
    color: white;
    transform: translateY(-2px);
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Submit Button Specific Styling */
#submitBtn {
    margin-top: 25px;
    margin-bottom: 15px;
}

/* Loading and Success States */
.loading {
    text-align: center;
    padding: 40px;
    color: #667eea;
    font-size: 1.2rem;
    font-weight: 500;
}

.loading i {
    font-size: 2rem;
    margin-bottom: 15px;
    display: block;
}

.success-message {
    background: linear-gradient(135deg, #f0fff4 0%, #e6fffa 100%);
    border-radius: 15px;
    padding: 0;
    box-shadow: 0 8px 32px rgba(72, 187, 120, 0.2);
    border: 2px solid #48bb78;
}

.success-content {
    padding: 40px;
    text-align: center;
}

.success-icon {
    font-size: 4rem;
    color: #38a169;
    margin-bottom: 20px;
    display: block;
    animation: successPulse 2s ease-in-out infinite;
}

.success-message h2 {
    color: #2d3748;
    margin-bottom: 30px;
    font-size: 2rem;
    font-weight: 700;
}

/* Confirmation Details Section */
.confirmation-details {
    background: white;
    border-radius: 12px;
    padding: 25px;
    margin: 25px 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    text-align: left;
}

.confirmation-number {
    text-align: center;
    margin-bottom: 25px;
    padding: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 10px;
    color: white;
}

.confirmation-number h3 {
    margin: 0 0 10px 0;
    font-size: 1.2rem;
    font-weight: 600;
    opacity: 0.9;
}

.confirmation-code {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: 3px;
    font-family: 'Courier New', monospace;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Appointment Summary */
.appointment-summary {
    margin-top: 20px;
}

.summary-card {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
    border-left: 4px solid #48bb78;
}

.summary-card h4 {
    color: #2d3748;
    margin: 0 0 15px 0;
    font-size: 1.3rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.summary-card h4 i {
    color: #48bb78;
    font-size: 1.2rem;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 8px 0;
    border-bottom: 1px solid #e2e8f0;
}

.summary-row:last-child {
    border-bottom: none;
}

.summary-row .label {
    font-weight: 600;
    color: #4a5568;
    min-width: 100px;
    flex-shrink: 0;
}

.summary-row .value {
    color: #2d3748;
    text-align: right;
    flex: 1;
    margin-left: 15px;
    word-break: break-word;
}

/* Next Steps Section */
.next-steps {
    background: #e6fffa;
    border-radius: 10px;
    padding: 20px;
    margin: 25px 0;
    border-left: 4px solid #38b2ac;
}

.next-steps h4 {
    color: #2d3748;
    margin: 0 0 15px 0;
    font-size: 1.2rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.next-steps h4 i {
    color: #38b2ac;
    font-size: 1.1rem;
}

.next-steps ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.next-steps li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 8px 0;
    color: #4a5568;
    line-height: 1.5;
}

.next-steps li i {
    color: #38a169;
    font-size: 0.9rem;
    margin-top: 3px;
    flex-shrink: 0;
}

/* Contact Info Section */
.contact-info {
    background: #fff5f5;
    border-radius: 10px;
    padding: 20px;
    margin: 25px 0;
    border-left: 4px solid #e53e3e;
    text-align: center;
}

.contact-info p {
    margin: 8px 0;
    color: #4a5568;
    line-height: 1.5;
}

.contact-info p:first-child {
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 15px;
}

.contact-info a {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.contact-info a:hover {
    color: #5a67d8;
    text-decoration: underline;
}

.contact-info i {
    color: #e53e3e;
    margin-right: 8px;
    width: 16px;
    text-align: center;
}

/* Action Buttons */
.action-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 30px;
    flex-wrap: wrap;
}

.action-buttons .btn {
    min-width: 180px;
    padding: 15px 25px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.action-buttons .btn i {
    margin-right: 8px;
    font-size: 1rem;
}

.action-buttons .btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.action-buttons .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
}

.action-buttons .btn-outline {
    background: white;
    color: #48bb78;
    border: 2px solid #48bb78;
    box-shadow: 0 2px 8px rgba(72, 187, 120, 0.2);
}

.action-buttons .btn-outline:hover {
    background: #48bb78;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(72, 187, 120, 0.4);
}

/* Success Animation */
@keyframes successPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.8;
    }
}

/* Responsive Design for Confirmation Page */
@media (max-width: 768px) {
    .success-content {
        padding: 30px 20px;
    }
    
    .success-message h2 {
        font-size: 1.6rem;
    }
    
    .confirmation-details {
        padding: 20px;
        margin: 20px 0;
    }
    
    .confirmation-number {
        padding: 15px;
    }
    
    .confirmation-code {
        font-size: 1.5rem;
        letter-spacing: 2px;
    }
    
    .summary-row {
        flex-direction: column;
        gap: 5px;
        align-items: flex-start;
    }
    
    .summary-row .value {
        text-align: left;
        margin-left: 0;
        margin-top: 5px;
    }
    
    .action-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .action-buttons .btn {
        min-width: 200px;
        width: 100%;
        max-width: 300px;
    }
    
    .next-steps,
    .contact-info {
        padding: 15px;
        margin: 20px 0;
    }
}

@media (max-width: 480px) {
    .success-content {
        padding: 25px 15px;
    }
    
    .success-icon {
        font-size: 3rem;
    }
    
    .success-message h2 {
        font-size: 1.4rem;
    }
    
    .confirmation-details {
        padding: 15px;
    }
    
    .confirmation-number {
        padding: 12px;
    }
    
    .confirmation-code {
        font-size: 1.3rem;
        letter-spacing: 1px;
    }
    
    .summary-card {
        padding: 15px;
    }
    
    .summary-card h4 {
        font-size: 1.1rem;
    }
    
    .next-steps h4,
    .contact-info p:first-child {
        font-size: 1.1rem;
    }
}

/* Mobile-First Responsive Design */
@media (max-width: 768px) {
    body {
        font-size: 16px; /* Prevents zoom on iOS */
        overflow-x: hidden; /* Prevent horizontal scroll */
    }
    
    .container {
        padding: 8px;
        max-width: 100%;
        width: 100%;
        margin: 0;
        box-sizing: border-box;
    }
    
    header {
        flex-direction: column;
        gap: 12px;
        text-align: center;
        padding: 12px;
        margin-bottom: 15px;
        width: 100%;
        box-sizing: border-box;
    }
    
    header h1 {
        font-size: 1.3rem;
        word-wrap: break-word;
    }
    
    main {
        padding: 10px;
        margin: 0;
        width: 100%;
        box-sizing: border-box;
    }
    
    .booking-form-container h2 {
        font-size: 1.4rem;
        margin-bottom: 15px;
        word-wrap: break-word;
    }
    
    .appointment-form {
        padding: 10px;
        gap: 15px;
        margin: 0;
        width: 100%;
        box-sizing: border-box;
        border-radius: 12px;
    }
    
    .form-group {
        gap: 10px;
        width: 100%;
        box-sizing: border-box;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        width: 100%;
        max-width: 100%;
        padding: 14px 12px;
        font-size: 16px; /* Prevents zoom on iOS */
        border-radius: 8px;
        min-height: 48px;
        box-sizing: border-box;
        border: 2px solid #e2e8f0;
    }
    
    /* Mobile-specific date input fixes */
    input[type="date"] {
        padding-right: 40px !important;
        background-position: right 12px center !important;
        background-size: 16px 16px !important;
    }
    
    #appointmentDate {
        width: 100% !important;
        max-width: calc(100% - 4px) !important;
        box-sizing: border-box !important;
    }
    
    .form-group textarea {
        min-height: 90px;
        resize: vertical;
    }
    
    .address-row {
        grid-template-columns: 1fr;
        gap: 12px;
        width: 100%;
    }
    
    .address-row .form-group {
        width: 100%;
    }
    
    #steamInstructionsGroup,
    #comforterInstructionsGroup {
        padding: 12px;
        margin: 12px 0;
        width: 100%;
        box-sizing: border-box;
    }
    
    #steamInstructionsGroup textarea,
    #comforterInstructionsGroup textarea {
        width: 100%;
        min-height: 90px;
        font-size: 16px;
        box-sizing: border-box;
    }
    
    #counterWrapper,
    #comforterSizeWrapper {
        gap: 15px;
        margin-top: 12px;
        padding: 8px 0;
        width: 100%;
    }
    
    .checkbox-group {
        gap: 12px;
        margin-top: 12px;
        width: 100%;
    }
    
    .checkbox-item {
        padding: 12px;
        gap: 10px;
        flex-direction: row;
        align-items: flex-start;
        width: 100%;
        box-sizing: border-box;
    }
    
    .checkbox-item input[type="checkbox"] {
        margin-top: 2px;
        flex-shrink: 0;
        width: 18px;
        height: 18px;
    }
    
    .time-slots {
        grid-template-columns: 1fr;
        gap: 8px;
        margin-top: 12px;
        width: 100%;
    }
    
    .time-slot {
        padding: 15px;
        font-size: 1rem;
        min-height: 60px;
        justify-content: center;
        width: 100%;
        box-sizing: border-box;
    }
    
    .btn {
        padding: 16px 20px;
        font-size: 1rem;
        min-height: 50px;
        width: 100%;
        box-sizing: border-box;
    }
    
    /* Modal improvements for mobile */
    .modal-content {
        width: 95%;
        margin: 2.5% auto;
        max-height: 90vh;
        max-width: 95vw;
    }
    
    .modal-body {
        padding: 15px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 5px;
        width: 100vw;
        max-width: 100vw;
    }
    
    header {
        padding: 10px;
        margin-bottom: 12px;
    }
    
    header h1 {
        font-size: 1.2rem;
    }
    
    main {
        padding: 8px;
    }
    
    .booking-form-container h2 {
        font-size: 1.3rem;
        margin-bottom: 12px;
    }
    
    .appointment-form {
        padding: 8px;
        gap: 12px;
        border-radius: 10px;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 12px 10px;
        font-size: 16px; /* Prevents zoom on iOS */
        border-radius: 6px;
        min-height: 46px;
    }
    
    .form-group textarea {
        min-height: 80px;
    }
    
    #steamInstructionsGroup,
    #comforterInstructionsGroup {
        padding: 10px;
        margin: 10px 0;
    }
    
    #steamInstructionsGroup textarea,
    #comforterInstructionsGroup textarea {
        min-height: 80px;
        font-size: 16px;
        padding: 12px 10px;
    }
    
    #counterWrapper,
    #comforterSizeWrapper {
        gap: 12px;
        margin-top: 10px;
        padding: 6px 0;
    }
    
    .checkbox-group {
        gap: 10px;
    }
    
    .checkbox-item {
        padding: 10px;
        gap: 8px;
    }
    
    .time-slots {
        grid-template-columns: 1fr;
        gap: 6px;
    }
    
    .time-slot {
        padding: 14px;
        font-size: 0.95rem;
        min-height: 55px;
    }
    
    .btn {
        padding: 14px 18px;
        font-size: 1rem;
        min-height: 48px;
        border-radius: 6px;
    }
    
    /* Better modal experience on mobile */
    .modal-content {
        width: 98%;
        margin: 1% auto;
        max-height: 98vh;
        max-width: 98vw;
        border-radius: 10px;
    }
    
    .modal-header {
        padding: 12px 15px;
    }
    
    .modal-body {
        padding: 12px;
    }
}

/* Very small phones */
@media (max-width: 375px) {
    .container {
        padding: 3px;
        width: 100vw;
    }
    
    header, main {
        border-radius: 10px;
    }
    
    .appointment-form {
        padding: 6px;
        gap: 10px;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 10px 8px;
        min-height: 44px;
    }
    
    .time-slot {
        padding: 12px;
        min-height: 50px;
        font-size: 0.9rem;
    }
    
    .btn {
        padding: 12px 16px;
        min-height: 46px;
    }
}

/* Landscape mobile optimization */
@media (max-width: 768px) and (orientation: landscape) {
    .container {
        padding: 6px;
        width: 100vw;
    }
    
    header {
        padding: 8px;
        margin-bottom: 10px;
    }
    
    main {
        padding: 8px;
    }
    
    .appointment-form {
        padding: 8px;
        gap: 10px;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 10px 12px;
        min-height: 42px;
    }
    
    .time-slots {
        grid-template-columns: repeat(2, 1fr);
        gap: 6px;
    }
    
    .time-slot {
        padding: 10px;
        min-height: 45px;
        font-size: 0.9rem;
    }
    
    .btn {
        padding: 10px 16px;
        min-height: 42px;
    }
}

/* Ensure no horizontal overflow */
@media (max-width: 768px) {
    * {
        max-width: 100%;
        box-sizing: border-box;
    }
    
    html, body {
        overflow-x: hidden;
        width: 100%;
    }
    
    .appointment-form * {
        max-width: 100%;
    }
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

.slide-up {
    animation: slideUp 0.5s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: #667eea;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: #5a67d8;
}

/* Iframe Integration Optimizations */
@media (max-width: 900px) {
    body {
        background: #f8f9fa; /* Simpler background for mobile iframes */
        min-height: auto;
    }
    
    .container {
        max-width: 100%;
        padding: 10px;
    }
    
    header, main {
        margin-bottom: 15px;
    }
}

/* Wix iframe specific optimizations */
body.iframe-mode {
    background: transparent;
    min-height: auto;
    padding: 0;
    margin: 0;
}

body.iframe-mode .container {
    max-width: 100%;
    padding: 15px;
    margin: 0;
}

body.iframe-mode header {
    margin-bottom: 20px;
    background: rgba(255, 255, 255, 0.98);
}

body.iframe-mode main {
    background: rgba(255, 255, 255, 0.98);
}

/* Auto-detect iframe and apply styles */
@media (max-height: 600px) {
    .container {
        padding: 10px;
    }
    
    header {
        padding: 15px;
        margin-bottom: 15px;
    }
    
    main {
        padding: 20px;
    }
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.modal-content {
    background: white;
    margin: 5% auto;
    padding: 0;
    border-radius: 15px;
    width: 90%;
    max-width: 450px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease-out;
}

.modal-header {
    padding: 25px 30px 20px;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    margin: 0;
    color: #4a5568;
    font-size: 1.4rem;
    font-weight: 600;
}

.close {
    color: #a0aec0;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
    line-height: 1;
}

.close:hover {
    color: #667eea;
}

.modal-body {
    padding: 30px;
}

.login-options {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.btn-google {
    background: #4285f4;
    color: white;
    border: none;
    padding: 15px 20px;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-google:hover {
    background: #3367d6;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(66, 133, 244, 0.4);
}

.divider {
    text-align: center;
    position: relative;
    margin: 10px 0;
}

.divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #e2e8f0;
}

.divider span {
    background: white;
    padding: 0 15px;
    color: #718096;
    font-size: 0.9rem;
}

.email-login-form,
.email-signup-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.email-signup-form h4 {
    margin: 0 0 15px 0;
    color: #4a5568;
    font-size: 1.2rem;
    font-weight: 600;
}

.signup-link {
    text-align: center;
    margin-top: 15px;
}

.signup-link p {
    margin: 0;
    color: #718096;
    font-size: 0.9rem;
}

.signup-link a,
.email-signup-form a {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.signup-link a:hover,
.email-signup-form a:hover {
    color: #5a67d8;
    text-decoration: underline;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Modal responsive design */
@media (max-width: 480px) {
    .modal-content {
        margin: 10% auto;
        width: 95%;
    }
    
    .modal-header {
        padding: 20px 25px 15px;
    }
    
    .modal-body {
        padding: 25px;
    }
    
    .modal-header h3 {
        font-size: 1.2rem;
    }
}

/* Welcome Section Styles */
.welcome-section {
    background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 25px;
    color: white;
    text-align: center;
    box-shadow: 0 8px 32px rgba(72, 187, 120, 0.3);
}

.welcome-message {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.welcome-message i {
    font-size: 3rem;
    opacity: 0.9;
    margin-bottom: 5px;
}

.welcome-message h3 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
}

.welcome-message p {
    margin: 0;
    opacity: 0.9;
    font-size: 1rem;
}

/* Guest Notice Styles */
.guest-notice {
    text-align: center;
    margin-bottom: 25px;
}

.guest-notice h2 {
    color: #4a5568;
    margin-bottom: 15px;
    font-size: 1.8rem;
    font-weight: 600;
}

.login-suggestion {
    background: #f7fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 15px 20px;
    margin: 0;
    color: #718096;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.login-suggestion i {
    color: #667eea;
    font-size: 1rem;
}

.login-suggestion a {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.login-suggestion a:hover {
    color: #5a67d8;
    text-decoration: underline;
}

/* Logged In Header Styles */
.logged-in-header {
    text-align: center;
    margin-bottom: 25px;
}

.logged-in-header h2 {
    color: #4a5568;
    margin: 0;
    font-size: 1.8rem;
    font-weight: 600;
}

/* Responsive adjustments for welcome section */
@media (max-width: 768px) {
    .welcome-section {
        padding: 20px;
        margin-bottom: 20px;
    }
    
    .welcome-message i {
        font-size: 2.5rem;
    }
    
    .welcome-message h3 {
        font-size: 1.3rem;
    }
    
    .login-suggestion {
        flex-direction: column;
        gap: 5px;
        text-align: center;
    }
}
