/* Enhanced Appointment Section */
.appointment {
    padding: 5rem 0;
    background: linear-gradient(135deg, 
        rgba(10, 10, 15, 0.95) 0%,
        rgba(26, 26, 46, 0.95) 50%,
        rgba(22, 33, 62, 0.95) 100%
    );
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

/* Reset any conflicting styles */
.appointment * {
    box-sizing: border-box;
}

.appointment input,
.appointment select,
.appointment textarea,
.appointment button {
    font-family: 'Inter', sans-serif;
}

.appointment::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 20%, rgba(16, 185, 129, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(99, 102, 241, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 60%, rgba(0, 212, 255, 0.05) 0%, transparent 50%);
    pointer-events: none;
    z-index: 1;
}

.appointment .container {
    position: relative;
    z-index: 2;
}

.appointment-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 3rem;
    align-items: start;
    position: relative;
    z-index: 2;
}

/* Consultation Benefits - Left Side */
.consultation-benefits {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1.5rem;
    padding: 2.5rem;
    backdrop-filter: blur(20px);
    position: relative;
    overflow: hidden;
    height: fit-content;
    position: sticky;
    top: 2rem;
}

.consultation-benefits::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(16, 185, 129, 0.1), transparent);
    transition: left 0.6s;
}

.consultation-benefits:hover::before {
    left: 100%;
}

.benefits-header {
    text-align: center;
    margin-bottom: 2.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
}

.benefits-header::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, #10b981, #00d4ff);
    border-radius: 1px;
}

.benefits-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #10b981, #00d4ff);
    border-radius: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    margin: 0 auto 1.5rem;
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.3);
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.benefits-header h3 {
    font-size: 1.6rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.8rem;
    background: linear-gradient(135deg, #ffffff, #b3b3b3);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.benefits-header p {
    color: #b3b3b3;
    font-size: 1rem;
    line-height: 1.6;
}

.benefits-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.benefit-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 0.8rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.benefit-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 212, 255, 0.05), transparent);
    transition: left 0.5s ease;
}

.benefit-item:hover::before {
    left: 100%;
}

.benefit-item:hover {
    background: rgba(0, 212, 255, 0.05);
    border-color: rgba(0, 212, 255, 0.2);
    transform: translateX(5px);
}

.benefit-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #00d4ff, #6366f1);
    border-radius: 0.6rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: white;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

.benefit-content {
    flex: 1;
    position: relative;
    z-index: 1;
}

.benefit-content h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 0.5rem;
}

.benefit-content p {
    color: #b3b3b3;
    font-size: 0.9rem;
    line-height: 1.5;
}

.consultation-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.stat-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 0.8rem;
    padding: 1.2rem 0.8rem;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 212, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.stat-card:hover::before {
    left: 100%;
}

.stat-card:hover {
    background: rgba(0, 212, 255, 0.1);
    border-color: rgba(0, 212, 255, 0.4);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 212, 255, 0.2);
}

.stat-number {
    font-size: 1.4rem;
    font-weight: 700;
    color: #00d4ff;
    margin-bottom: 0.3rem;
    position: relative;
    z-index: 1;
}

.stat-label {
    font-size: 0.8rem;
    color: #b3b3b3;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    z-index: 1;
}

/* Appointment Form - Right Side */
.appointment-form-section {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1.5rem;
    padding: 2.5rem;
    backdrop-filter: blur(20px);
    position: relative;
    overflow: hidden;
}

.appointment-form-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.1), transparent);
    transition: left 0.6s;
}

.appointment-form-section:hover::before {
    left: 100%;
}

.form-header {
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
    z-index: 1;
}

.form-header h3 {
    font-size: 1.6rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.8rem;
    background: linear-gradient(135deg, #ffffff, #b3b3b3);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.form-header p {
    color: #b3b3b3;
    font-size: 1rem;
    line-height: 1.6;
}

/* Enhanced Form Styles */
.appointment-form {
    position: relative;
    z-index: 1;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.form-group {
    position: relative;
}

/* Hide labels but keep them for accessibility */
.form-group label {
    position: absolute;
    left: -9999px;
    opacity: 0;
    pointer-events: none;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 1rem 1.2rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.8rem;
    color: #ffffff;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    box-sizing: border-box;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: rgba(0, 212, 255, 0.5);
    background: rgba(0, 212, 255, 0.05);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.1);
    transform: translateY(-1px);
}

/* Date input specific styles */
.form-group input[type="date"] {
    position: relative;
    color-scheme: dark;
}

.form-group input[type="date"]::-webkit-calendar-picker-indicator {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24"><path fill="%2300d4ff" d="M19 3h-1V1h-2v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H5V8h14v11zM7 10h5v5H7z"/></svg>');
    cursor: pointer;
    opacity: 0.8;
}

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

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #888;
    font-size: 0.9rem;
}

.form-group select {
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url('data:image/svg+xml;charset=US-ASCII,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 4 5"><path fill="%23888" d="M2 0L0 2h4zm0 5L0 3h4z"/></svg>');
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 12px;
    padding-right: 3rem;
    position: relative;
    z-index: 1;
}

.form-group select option {
    background: #1a1a2e;
    color: #ffffff;
    padding: 0.5rem;
}

.form-group select option:first-child {
    color: #888;
}

.form-group select:invalid {
    color: #888;
}

.form-group select:valid {
    color: #ffffff;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
    font-family: inherit;
    line-height: 1.5;
}

/* DateTime Section */
.datetime-section {
    margin-bottom: 1.5rem;
}

.datetime-title {
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Full width textarea */
.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group.full-width textarea {
    min-height: 100px;
    resize: vertical;
}

/* Form Footer */
.form-footer {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
}

.form-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 1px;
    background: linear-gradient(90deg, transparent, #00d4ff, transparent);
}

.form-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    color: #b3b3b3;
    font-size: 0.9rem;
    text-align: center;
}

.info-icon {
    font-size: 1.1rem;
    color: #10b981;
    flex-shrink: 0;
}

.submit-btn {
    background: linear-gradient(135deg, #00d4ff, #6366f1);
    border: none;
    border-radius: 0.8rem;
    padding: 1.2rem 2rem;
    color: white;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    min-height: 56px;
    width: 100%;
}

.submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.submit-btn:hover::before {
    left: 100%;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.3);
}

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

.btn-icon {
    font-size: 1.1rem;
}

.btn-loading {
    display: none;
}

.submit-btn.loading .btn-text {
    display: none;
}

.submit-btn.loading .btn-loading {
    display: inline;
}

/* Consultation Note */
.consultation-note {
    margin-top: 1.5rem;
    padding: 1rem;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 0.8rem;
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
}

.note-icon {
    font-size: 1.2rem;
    color: #10b981;
    flex-shrink: 0;
    margin-top: 0.1rem;
}

.note-content {
    flex: 1;
}

.note-content p {
    color: #b3b3b3;
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0;
}

.note-content strong {
    color: #10b981;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .appointment-wrapper {
        gap: 2rem;
    }
    
    .consultation-benefits {
        position: static;
    }
}

@media (max-width: 768px) {
    .appointment {
        padding: 3rem 0;
    }
    
    .appointment-wrapper {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .consultation-benefits {
        position: static;
        order: 2;
    }
    
    .appointment-form-section {
        order: 1;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 1rem;
        margin-bottom: 1rem;
    }
    
    .consultation-stats {
        grid-template-columns: 1fr;
        gap: 0.8rem;
    }
    
    .benefits-list {
        gap: 1rem;
    }
    
    .benefit-item {
        padding: 0.8rem;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 0.9rem 1rem;
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    .submit-btn {
        padding: 1rem 1.5rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .appointment-form-section,
    .consultation-benefits {
        padding: 1.5rem;
    }
    
    .benefits-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .benefit-icon {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
    
    .form-footer {
        flex-direction: column;
        text-align: center;
    }
}
