/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #489FB5 0%, #82C0CC 100%);
    min-height: 100vh;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

/* Header */
.header {
    text-align: center;
    margin-bottom: 2rem;
    color: #faf9f7;
}

.header h1 {
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.header p {
    font-size: 1.2rem;
    font-weight: 300;
    opacity: 0.9;
}

/* Form container */
.form-container {
    background: #EDE7E3;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    overflow: hidden;
    margin-bottom: 2rem;
}

.reunion-form {
    padding: 2rem;
}

/* Form sections */
.form-section {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #e5e7eb;
}

.form-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.form-section h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Form groups */
.form-group {
    margin-bottom: 1.5rem;
}

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

@media (max-width: 640px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}

label {
    display: block;
    font-weight: 500;
    color: #374151;
    margin-bottom: 0.5rem;
}

input[type="text"],
input[type="number"],
input[type="date"],
textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 16px; /* Prevents iOS zoom */
    font-family: inherit;
    transition: all 0.2s ease;
    background: #faf9f7;
}

input[type="text"]:focus,
input[type="number"]:focus,
input[type="date"]:focus,
textarea:focus {
    outline: none;
    border-color: #489FB5;
    background: #f5f4f2;
    box-shadow: 0 0 0 3px rgba(72, 159, 181, 0.1);
}

textarea {
    resize: vertical;
    min-height: 100px;
}

/* Radio buttons */
.radio-group {
    display: flex;
    gap: 1rem;
    margin-top: 0.5rem;
}

@media (max-width: 640px) {
    .radio-group {
        flex-direction: column;
    }
}

.radio-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    transition: all 0.2s ease;
    background: #faf9f7;
    flex: 1;
}

.radio-label:hover {
    border-color: #489FB5;
    background: white;
}

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

.radio-custom {
    width: 20px;
    height: 20px;
    border: 2px solid #d1d5db;
    border-radius: 50%;
    margin-right: 8px;
    position: relative;
    transition: all 0.2s ease;
}

.radio-label input[type="radio"]:checked + .radio-custom {
    border-color: #489FB5;
    background: #489FB5;
}

.radio-label input[type="radio"]:checked + .radio-custom::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    background: white;
    border-radius: 50%;
}

.radio-label input[type="radio"]:checked {
    border-color: #489FB5;
    background: white;
}

/* Form actions */
.form-actions {
    margin-top: 2rem;
    text-align: center;
}

.submit-btn {
    background: #FFA62B;
    color: white;
    border: none;
    padding: 16px 32px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 200px;
    position: relative;
}

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

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

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

/* Messages */
.success-message,
.error-message {
    padding: 2rem;
    text-align: center;
    border-radius: 8px;
    margin: 2rem 0;
}

.success-message {
    background: #ecfdf5;
    border: 1px solid #d1fae5;
    color: #065f46;
}

.success-message h3 {
    margin-bottom: 1rem;
    color: #047857;
}

.error-message {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
}

.error-message h3 {
    margin-bottom: 1rem;
    color: #dc2626;
}

.view-results-btn {
    display: inline-block;
    background: #059669;
    color: white;
    text-decoration: none;
    padding: 12px 24px;
    border-radius: 6px;
    font-weight: 500;
    margin-top: 1rem;
    transition: background 0.2s ease;
}

.view-results-btn:hover {
    background: #047857;
}

/* Footer */
.footer {
    text-align: center;
    color: white;
    opacity: 0.8;
}

.footer a {
    color: white;
    text-decoration: underline;
}

.footer a:hover {
    opacity: 0.8;
}

/* Loading states */
.btn-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-loading::after {
    content: '';
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive design */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    .header h1 {
        font-size: 2rem;
    }
    
    .reunion-form {
        padding: 1.5rem;
    }
    
    .submit-btn {
        width: 100%;
        min-height: 50px;
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 10px;
    }
    
    .header h1 {
        font-size: 1.75rem;
    }
    
    .reunion-form {
        padding: 1rem;
    }
    
    .form-section h2 {
        font-size: 1.3rem;
    }
    
    .form-group {
        margin-bottom: 1.5rem;
    }
    
    input[type="text"],
    input[type="number"],
    input[type="date"],
    textarea {
        padding: 14px 16px;
        font-size: 16px;
        min-height: 44px;
    }
    
    .radio-label {
        padding: 14px 16px;
        min-height: 44px;
        display: flex;
        align-items: center;
    }
}
