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

body {
    font-family: Verdana, 'Segoe UI', Tahoma, Geneva, sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #2c5aa0 0%, #1e3a5f 100%);
    min-height: 100vh;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

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

.logo-container h1 {
    font-size: 2.8rem;
    font-weight: 300;
    margin-bottom: 5px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.4);
    letter-spacing: -1px;
}

.tagline {
    font-size: 1.1rem;
    opacity: 0.9;
    font-style: italic;
    font-weight: 300;
}

/* Main content */
main {
    flex: 1;
    background: white;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    margin-bottom: 20px;
}

/* Hero section */
.hero {
    text-align: center;
    margin-bottom: 40px;
}

.hero h2 {
    font-size: 2.2rem;
    color: #2c3e50;
    margin-bottom: 15px;
    font-weight: 400;
}

.hero-description {
    font-size: 1.15rem;
    color: #555;
    line-height: 1.7;
    max-width: 600px;
    margin: 0 auto;
}

/* Form section */
.form-section {
    background: #ffffff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    margin-bottom: 40px;
    border: 1px solid #e9ecef;
}

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

.form-group label {
    display: block;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.form-group input[type="email"],
.form-group input[type="text"],
.form-group input[type="number"],
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e1e8ed;
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.95rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    background-color: #fafbfc;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #2c5aa0;
    box-shadow: 0 0 0 3px rgba(44, 90, 160, 0.1);
    background-color: #ffffff;
}

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

.form-help {
    display: block;
    color: #666;
    font-size: 0.85rem;
    margin-top: 6px;
    font-style: italic;
}

/* Captcha */
.captcha-group {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #dee2e6;
}

.simple-captcha label {
    font-size: 0.9rem;
    color: #495057;
    margin-bottom: 10px;
}

.simple-captcha input {
    max-width: 120px;
}

/* Form actions */
.form-actions {
    text-align: center;
    margin: 30px 0;
}

.submit-btn {
    background: linear-gradient(135deg, #2c5aa0 0%, #1e3a5f 100%);
    color: white;
    border: none;
    padding: 15px 35px;
    font-size: 1.05rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.3s ease;
    text-decoration: none;
    display: inline-block;
    font-family: inherit;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(44, 90, 160, 0.3);
}

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

/* Form info */
.form-info {
    background: #e3f2fd;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #2196f3;
    margin-top: 25px;
}

.form-info p {
    color: #1565c0;
    margin: 0;
    line-height: 1.6;
}

/* Messages */
.message {
    padding: 15px 20px;
    border-radius: 8px;
    margin: 20px 0;
    font-weight: 500;
}

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

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

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

/* Feature cards */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin: 40px 0;
}

.feature-card {
    background: #ffffff;
    padding: 25px 20px;
    border-radius: 10px;
    text-align: center;
    border: 1px solid #e1e8ed;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.feature-card h3 {
    font-size: 1.2rem;
    color: #2c3e50;
    margin-bottom: 12px;
    font-weight: 600;
}

.feature-card p {
    color: #555;
    font-size: 0.9rem;
    line-height: 1.5;
}

/* RGPD section */
.rgpd-info {
    margin: 30px 0;
}

.rgpd-badge {
    display: flex;
    align-items: center;
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #dee2e6;
    gap: 15px;
    max-width: 500px;
    margin: 0 auto;
}

.rgpd-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.rgpd-text {
    flex: 1;
}

.rgpd-text strong {
    color: #2c3e50;
    font-size: 0.95rem;
}

.rgpd-text small {
    color: #666;
    font-size: 0.8rem;
    line-height: 1.4;
}

/* Legal pages */
.legal-content {
    background: #ffffff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    margin-bottom: 40px;
    border: 1px solid #e9ecef;
}

.legal-content h2 {
    color: #2c3e50;
    font-size: 2rem;
    margin-bottom: 30px;
    text-align: center;
    border-bottom: 2px solid #2c5aa0;
    padding-bottom: 15px;
}

.legal-intro {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #2c5aa0;
    margin-bottom: 30px;
}

.legal-intro p {
    color: #555;
    font-size: 1.05rem;
    line-height: 1.6;
    margin: 0;
}

.legal-section {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e9ecef;
}

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

.legal-section h3 {
    color: #2c3e50;
    font-size: 1.4rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.legal-section p {
    color: #555;
    line-height: 1.6;
    margin-bottom: 10px;
}

.legal-section ul {
    margin: 15px 0;
    padding-left: 20px;
}

.legal-section ul li {
    color: #555;
    line-height: 1.6;
    margin-bottom: 8px;
}

.legal-section a {
    color: #2c5aa0;
    text-decoration: none;
}

.legal-section a:hover {
    text-decoration: underline;
}

.legal-footer {
    text-align: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 2px solid #e9ecef;
}

.legal-footer p {
    color: #666;
    font-style: italic;
    font-size: 0.9rem;
}

/* Status indicator (kept for health checks) */
.status-indicator {
    display: none;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

/* Footer */
footer {
    margin-top: 40px;
    padding: 25px 0;
    color: white;
}

.footer-content {
    text-align: center;
}

.footer-content p {
    margin-bottom: 10px;
    opacity: 0.9;
    font-size: 0.9rem;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.footer-links a {
    color: white;
    text-decoration: none;
    opacity: 0.8;
    font-size: 0.85rem;
    transition: opacity 0.3s ease;
}

.footer-links a:hover {
    opacity: 1;
    text-decoration: underline;
}

/* Responsive design */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    .logo-container h1 {
        font-size: 2.2rem;
    }
    
    .tagline {
        font-size: 1rem;
    }
    
    .hero h2 {
        font-size: 1.8rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .form-section {
        padding: 25px 20px;
    }
    
    .features {
        grid-template-columns: 1fr;
        gap: 20px;
        margin: 30px 0;
    }
    
    .rgpd-badge {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 10px;
    }
    
    .submit-btn {
        width: 100%;
        padding: 18px 25px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 10px;
    }
    
    .form-section {
        padding: 20px 15px;
    }
    
    .logo-container h1 {
        font-size: 1.9rem;
    }
    
    .hero h2 {
        font-size: 1.6rem;
    }
}