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

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #1a202c 0%, #2d3748 50%, #4a5568 100%);
    min-height: 100vh;
    padding: 20px;
    line-height: 1.6;
}

.container {
    
   
}

.contact-form-wrapper {
    width: 100%;
    background: rgba(26, 32, 44, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    padding: 40px;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-form-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea, #764ba2, #f093fb, #f5576c);
    background-size: 400% 400%;
    animation: gradientShift 8s ease infinite;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.form-header {
    text-align: center;
    margin-bottom: 40px;
}

.form-header h1 {
    color: #f7fafc;
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.form-header h1 i {
    color: #667eea;
    margin-right: 10px;
}

.form-header p {
    color: #a0aec0;
    font-size: 1.1rem;
    font-weight: 300;
}

.contact-form {
    display: block;
}

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

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

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

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid #4a5568;
    border-radius: 12px;
    font-size: 1rem;
    font-family: inherit;
    background: #2d3748;
    color: #f7fafc;
    transition: all 0.3s ease;
    outline: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #a0aec0;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.3);
    transform: translateY(-2px);
}

.form-group input:valid,
.form-group select:valid,
.form-group textarea:valid {
    border-color: #48bb78;
}

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

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

.checkbox-label {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    font-size: 0.95rem;
    color: #cbd5e0;
    line-height: 1.5;
}

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

.checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid #4a5568;
    border-radius: 4px;
    margin-right: 12px;
    margin-top: 2px;
    position: relative;
    flex-shrink: 0;
    transition: all 0.3s ease;
    background: #2d3748;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark {
    background: #667eea;
    border-color: #667eea;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark::after {
    content: '✓';
    position: absolute;
    color: white;
    font-size: 14px;
    font-weight: bold;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.checkbox-label a {
    color: #667eea;
    text-decoration: none;
}

.checkbox-label a:hover {
    text-decoration: underline;
}

.submit-btn {
    width: 100%;
    padding: 18px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

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

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

.submit-btn.loading {
    pointer-events: none;
    opacity: 0.8;
}

.btn-loading {
    display: none;
}

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

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

.error-message {
    color: #e53e3e;
    font-size: 0.85rem;
    margin-top: 5px;
    display: block;
    min-height: 20px;
}

.form-group.error input,
.form-group.error select,
.form-group.error textarea {
    border-color: #e53e3e;
    box-shadow: 0 0 0 3px rgba(229, 62, 62, 0.1);
}

.success-message {
    display: none;
    text-align: center;
    padding: 40px;
    color: #f7fafc;
}

.success-message.show {
    display: block;
    animation: slideInUp 0.5s ease;
}

.success-message i {
    font-size: 4rem;
    color: #48bb78;
    margin-bottom: 20px;
}

.success-message h3 {
    font-size: 1.8rem;
    margin-bottom: 10px;
    color: #f7fafc;
}

.success-message p {
    color: #a0aec0;
    font-size: 1.1rem;
}

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

/* Team Contact Section */
.team-contact-section {
    margin-top: 40px;
    background: rgba(26, 32, 44, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    padding: 40px;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.team-contact-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #48bb78, #38a169, #2f855a, #276749);
    background-size: 400% 400%;
    animation: gradientShift 8s ease infinite;
}

.team-header {
    text-align: center;
    margin-bottom: 40px;
}

.team-header h2 {
    color: #f7fafc;
    font-size: 2.2rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.team-header h2 i {
    color: #48bb78;
    margin-right: 10px;
}

.team-header p {
    color: #a0aec0;
    font-size: 1.1rem;
    font-weight: 300;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.team-member {
    background: #2d3748;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.team-member::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.team-member:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

.team-member:hover::before {
    transform: scaleX(1);
}

.member-avatar {
    text-align: center;
    margin-bottom: 20px;
}

.member-avatar img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #4a5568;
    transition: all 0.3s ease;
}

.team-member:hover .member-avatar img {
    border-color: #667eea;
    transform: scale(1.05);
}

/* Fallback avatar styles */
.member-avatar.fallback-avatar {
    position: relative;
}

.member-avatar.fallback-avatar::before {
    content: attr(data-initials);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-size: 28px;
    font-weight: 600;
    border: 3px solid #4a5568;
    transition: all 0.3s ease;
    margin: 0 auto;
}

.team-member:hover .member-avatar.fallback-avatar::before {
    border-color: #667eea;
    transform: scale(1.05);
    background: linear-gradient(135deg, #4c51bf 0%, #553c9a 100%);
}

.member-info {
    text-align: center;
}

.member-info h4 {
    color: #f7fafc;
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 5px;
}

.member-info .role {
    color: #667eea;
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.contact-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.contact-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 20px;
    background: #1a202c;
    border: 1px solid #4a5568;
    border-radius: 10px;
    color: #cbd5e0;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.contact-link:hover {
    background: #667eea;
    color: white;
    border-color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

.contact-link i {
    font-size: 0.85rem;
    flex-shrink: 0;
}

/* Responsive design */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    .contact-form-wrapper {
        padding: 30px 20px;
        border-radius: 15px;
    }
    
    .team-contact-section {
        padding: 30px 20px;
        border-radius: 15px;
        margin-top: 20px;
    }
    
    .form-header h1 {
        font-size: 2rem;
    }
    
    .team-header h2 {
        font-size: 1.8rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .form-group {
        margin-bottom: 20px;
    }
    
    .team-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .team-member {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .form-header h1 {
        font-size: 1.8rem;
    }
    
    .team-header h2 {
        font-size: 1.6rem;
    }
    
    .form-header p {
        font-size: 1rem;
    }
    
    .contact-form-wrapper {
        padding: 20px 15px;
    }
    
    .team-contact-section {
        padding: 20px 15px;
    }
    
    .team-member {
        padding: 15px;
    }
    
    .member-avatar img {
        width: 70px;
        height: 70px;
    }
    
    .member-info h4 {
        font-size: 1.2rem;
    }
}