/* VDU Health Event Registration - Mobile-First CSS */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #1E603F 0%, #4CAF50 100%);
    min-height: 100vh;
}

.container {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
    background: white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-radius: 15px;
    margin-top: 20px;
    margin-bottom: 20px;
}

/* Header */
.header {
    text-align: center;
    margin-bottom: 30px;
}

.doctor-photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #1E603F;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(30, 96, 63, 0.3);
}

.welcome-message h1 {
    color: #1E603F;
    font-size: 1.8rem;
    margin-bottom: 15px;
    font-weight: 700;
}

.main-message {
    font-size: 1.2rem;
    font-weight: 600;
    color: #1E603F;
    margin-bottom: 20px;
    background: #E8F5E8;
    padding: 15px;
    border-radius: 10px;
    border-left: 4px solid #4CAF50;
}

.event-info {
    font-size: 1rem;
    color: #555;
    line-height: 1.7;
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    border-left: 4px solid #1E603F;
}

/* Messages */
.success-message, .error-message, .no-slots-message {
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    text-align: center;
}

.success-message {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.error-message {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

.no-slots-message {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    color: #856404;
}

.no-slots-message h3 {
    color: #856404;
    margin-bottom: 15px;
}

.clinic-link {
    display: inline-block;
    background: #1E603F;
    color: white;
    padding: 12px 24px;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    margin-top: 15px;
    transition: background 0.3s ease;
}

.clinic-link:hover {
    background: #4CAF50;
}

/* Form */
.registration-form {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 15px;
    border: 1px solid #e9ecef;
}

.registration-form h2 {
    color: #1E603F;
    margin-bottom: 25px;
    text-align: center;
    font-size: 1.5rem;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #1E603F;
    box-shadow: 0 0 0 3px rgba(30, 96, 63, 0.1);
}

/* Time Slots */
.time-slots {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 10px;
    margin-top: 10px;
}

.time-slot {
    position: relative;
}

.time-slot input[type="radio"] {
    display: none;
}

.time-slot label {
    display: block;
    padding: 12px 8px;
    text-align: center;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    background: white;
}

.time-slot.available label:hover {
    border-color: #1E603F;
    background: #E8F5E8;
}

.time-slot.available input[type="radio"]:checked + label {
    background: #1E603F;
    color: white;
    border-color: #1E603F;
}

.time-slot.taken label {
    background: #f8f9fa;
    color: #6c757d;
    cursor: not-allowed;
    border-color: #dee2e6;
}

.taken-label {
    display: block;
    font-size: 0.8rem;
    color: #dc3545;
    margin-top: 4px;
}

/* Submit Button */
.submit-btn {
    width: 100%;
    background: linear-gradient(135deg, #1E603F, #4CAF50);
    color: white;
    padding: 15px 30px;
    border: none;
    border-radius: 25px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 20px;
}

.submit-btn:hover {
    background: linear-gradient(135deg, #4CAF50, #1E603F);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(30, 96, 63, 0.3);
}

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

/* Footer */
.footer {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
}

.social-links {
    margin-bottom: 15px;
}

.social-links p {
    color: #666;
    margin-bottom: 10px;
    font-weight: 600;
}

.social-link {
    display: inline-block;
    margin: 0 10px;
    padding: 8px 16px;
    background: #1E603F;
    color: white;
    text-decoration: none;
    border-radius: 20px;
    font-weight: 600;
    transition: background 0.3s ease;
}

.social-link:hover {
    background: #4CAF50;
}

.clinic-info {
    color: #666;
    font-size: 0.9rem;
}

.clinic-info a {
    color: #1E603F;
    text-decoration: none;
    font-weight: 600;
}

.clinic-info a:hover {
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        margin: 10px;
        padding: 15px;
        border-radius: 10px;
    }
    
    .doctor-photo {
        width: 100px;
        height: 100px;
    }
    
    .welcome-message h1 {
        font-size: 1.5rem;
    }
    
    .main-message {
        font-size: 1.1rem;
        padding: 12px;
    }
    
    .event-info {
        padding: 15px;
        font-size: 0.95rem;
    }
    
    .time-slots {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
        gap: 8px;
    }
    
    .time-slot label {
        padding: 10px 6px;
        font-size: 0.9rem;
    }
    
    .registration-form {
        padding: 20px;
    }
    
    .registration-form h2 {
        font-size: 1.3rem;
    }
    
    .submit-btn {
        font-size: 16px;
        padding: 12px 25px;
    }
}

@media (max-width: 480px) {
    .container {
        margin: 5px;
        padding: 10px;
    }
    
    .time-slots {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .social-link {
        display: block;
        margin: 5px 0;
    }
    
    .doctor-photo {
        width: 80px;
        height: 80px;
    }
    
    .welcome-message h1 {
        font-size: 1.3rem;
    }
    
    .main-message {
        font-size: 1rem;
        padding: 10px;
    }
    
    .registration-form {
        padding: 15px;
    }
    
    .submit-btn {
        font-size: 15px;
        padding: 10px 20px;
    }
}

/* Loading states */
.submit-btn:disabled {
    background: #6c757d;
    cursor: not-allowed;
    transform: none;
}

.submit-btn:disabled:hover {
    background: #6c757d;
    transform: none;
    box-shadow: none;
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* High contrast mode */
@media (prefers-contrast: high) {
    .time-slot.available label {
        border-width: 3px;
    }
    
    .time-slot.available input[type="radio"]:checked + label {
        border-width: 3px;
    }
}

/* Touch-friendly enhancements */
@media (hover: none) and (pointer: coarse) {
    .time-slot label {
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .submit-btn {
        min-height: 44px;
    }
    
    .social-link {
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

/* Landscape mobile optimization */
@media (max-width: 768px) and (orientation: landscape) {
    .container {
        margin: 5px;
        padding: 10px;
    }
    
    .doctor-photo {
        width: 80px;
        height: 80px;
    }
    
    .time-slots {
        grid-template-columns: repeat(4, 1fr);
    }
}

