* {
    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, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
}

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

/* Header Styles */
.header {
    padding: 60px 0 40px;
    text-align: center;
    color: white;
}

.header-content {
    max-width: 600px;
    margin: 0 auto;
}

.main-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

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

/* Main Content */
.main-content {
    padding: 40px 0 60px;
}

.content-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* Contact Information */
.contact-info .section-title,
.contact-form-section h3 {
    font-size: 1.8rem;
    margin-bottom: 30px;
    color: #2c3e50;
    font-weight: 600;
}

.contact-item h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: #34495e;
    font-weight: 600;
}

.contact-details {
    margin-bottom: 25px;
}

.contact-details p {
    margin-bottom: 12px;
    padding: 8px 0;
}

.contact-details strong {
    font-weight: 600;
    min-width: 100px;
    display: inline-block;
    color: #555;
}

.contact-link {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.contact-link:hover {
    color: #764ba2;
    transform: translateX(3px);
}

.contact-link:after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -2px;
    left: 0;
    background: linear-gradient(90deg, #667eea, #764ba2);
    transition: width 0.3s ease;
}

.contact-link:hover:after {
    width: 100%;
}

.contact-item h4 {
    margin: 25px 0 15px 0;
    color: #2c3e50;
    font-size: 1.1rem;
}

.social-icons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 15px;
    background: linear-gradient(135deg, #f8f9ff 0%, #e8f0ff 100%);
    border-radius: 10px;
    text-decoration: none;
    color: #667eea;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid rgba(102, 126, 234, 0.2);
}

.social-link:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

.social-icon {
    font-size: 1.2rem;
}

/* Form Styles */
.contact-form-section {
    position: relative;
}

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

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e1e8ed;
    border-radius: 10px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: #fff;
    font-family: inherit;
}

.form-group input: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: 120px;
}

/* Math Captcha */
.math-captcha {
    margin-bottom: 25px;
    padding: 20px;
    /*background: linear-gradient(135deg, #fff5f5 0%, #ffe8e8 100%);*/
    border-radius: 10px;
    border: 1px solid #eccafe;
}

.math-captcha label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: #dc2626;
}

#mathQuestion {
    font-weight: 700;
    font-size: 1.1rem;
    color: #991b1b;
}

.math-captcha input {
    max-width: 100px;
    text-align: center;
    font-weight: 600;
}

/* Honeypot - Hidden from users */
.honeypot {
    position: absolute;
    left: -9999px;
    top: -9999px;
    opacity: 0;
    pointer-events: none;
}

/* Checkbox Agreement */
.cta__form-row {
    margin-bottom: 1rem;
}

.cta__form-group--full {
    width: 100%;
}

.cta__checkbox {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    line-height: 1.5;
}

.cta__checkbox input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin: 0;
    cursor: pointer;
    accent-color: #667eea;
    flex-shrink: 0;
    margin-top: 2px;
}

.cta__checkbox-text {
    color: #555;
    font-size: 0.95rem;
}

.cta__link {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.cta__link:hover {
    color: #764ba2;
    text-decoration: underline;
}

/* Error Messages */
.error-message {
    color: #dc2626;
    font-size: 0.875rem;
    margin-top: 5px;
    font-weight: 500;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.error-message.show {
    opacity: 1;
    transform: translateY(0);
}

/* Submit Button */
.btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 18px 30px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    min-width: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-family: inherit;
    width: 100%;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.3);
}

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

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

.btn-loader {
    width: 20px;
    height: 20px;
    border: 2px solid transparent;
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    display: none;
}

.btn.loading .btn-text {
    opacity: 0.7;
}

.btn.loading .btn-loader {
    display: block;
}

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

/* Form Message */
.form-message {
    margin-top: 20px;
    padding: 15px;
    border-radius: 10px;
    font-weight: 500;
    text-align: center;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    display: none;
}

.form-message.show {
    opacity: 1;
    transform: translateY(0);
    display: block;
}

.form-message.success {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    color: #065f46;
    border: 1px solid #34d399;
}

.form-message.error {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    color: #dc2626;
    border: 1px solid #f87171;
    margin-bottom: 1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .main-title {
        font-size: 2.2rem;
    }
    
    .subtitle {
        font-size: 1rem;
    }
    
    .content-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 30px 20px;
    }
    
    .social-icons {
        flex-direction: column;
    }
    
    .social-link {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .header {
        padding: 40px 0 30px;
    }
    
    .main-title {
        font-size: 1.8rem;
    }
    
    .content-wrapper {
        padding: 20px 15px;
    }
    
    .btn {
        width: 100%;
        min-width: auto;
    }
}

/* Animation for form elements */
.form-group {
    opacity: 0;
    transform: translateY(20px);
    animation: slideInUp 0.6s ease forwards;
}

.form-group:nth-child(1) { animation-delay: 0.1s; }
.form-group:nth-child(2) { animation-delay: 0.2s; }
.form-group:nth-child(3) { animation-delay: 0.3s; }
.form-group:nth-child(4) { animation-delay: 0.4s; }
.form-group:nth-child(5) { animation-delay: 0.5s; }
.cta__form-row { animation-delay: 0.6s; }

@keyframes slideInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Accessibility improvements */
.form-group input:invalid:not(:focus):not(:placeholder-shown) {
    border-color: #dc2626;
    background-color: #fef2f2;
}

.form-group input:valid:not(:focus):not(:placeholder-shown) {
    border-color: #10b981;
    background-color: #f0fdf4;
}

.form-group input.is-invalid {
    border-color: #dc2626 !important;
    background-color: #fef2f2 !important;
}

.form-group input.is-valid {
    border-color: #10b981 !important;
    background-color: #f0fdf4 !important;
}

/* Focus indicators for better accessibility */
.contact-link:focus,
.btn:focus,
.cta__link:focus {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}

.cta__checkbox:focus-within {
    outline: 2px solid #667eea;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Footer Styles */
.site-footer {
    padding: 40px 0;
    color: rgba(255, 255, 255, 0.7);
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    margin-top: 50px;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 25px;
}

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

.footer-links a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
}

.footer-links a:hover {
    color: #fff;
    text-decoration: underline;
}

.footer-info {
    font-size: 0.9rem;
    line-height: 1.5;
}

.footer-info p {
    margin: 0;
}

.footer-info p:first-child {
    margin-bottom: 8px;
}

@media (min-width: 768px) {
    .footer-content {
        flex-direction: row;
        justify-content: space-between;
    }

    .footer-links {
        order: 2;
    }
    
    .footer-info {
        order: 1;
        text-align: left;
    }
}