/* Contact Page Styles */

/* Hero Section */
.contact-hero {
    background: linear-gradient(135deg, #2a5298, #1e3c72);
    padding: 80px 0;
    text-align: center;
    color: var(--text-light);
    position: relative;
    overflow: hidden;
}

.contact-hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 300px;
    height: 300px;
    background-image: url('../images/dots-pattern.png');
    background-size: contain;
    opacity: 0.1;
    z-index: 1;
}

.contact-hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 250px;
    height: 250px;
    background-image: url('../images/circles-pattern.png');
    background-size: contain;
    opacity: 0.1;
    z-index: 1;
}

.contact-hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.contact-hero h1 {
    font-size: 42px;
    margin-bottom: 20px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.2);
}

.contact-hero p {
    font-size: 18px;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.7;
}

/* Content Grid */
.contact-content {
    background-color: var(--background-light);
    padding: 80px 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 40px;
}

/* Contact Information */
.contact-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-card, 
.social-connect-card {
    background-color: var(--background-white);
    border-radius: 10px;
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

.contact-card:hover, 
.social-connect-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.contact-card-header,
.social-card-header,
.form-card-header {
    background-color: var(--primary-color);
    color: var(--text-light);
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.contact-card-header i,
.social-card-header i {
    font-size: 24px;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 5px;
}

.contact-card-header h3,
.social-card-header h3,
.form-card-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
}

.contact-card-body,
.social-card-body {
    padding: 20px;
}

.contact-card-body p,
.social-card-body p {
    margin-bottom: 20px;
    color: #666;
    line-height: 1.6;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 20px;
}

.contact-item:last-child {
    margin-bottom: 0;
}

.contact-item i {
    font-size: 20px;
    color: var(--primary-color);
    width: 40px;
    height: 40px;
    background-color: rgba(237, 111, 38, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-item h4 {
    margin: 0 0 5px;
    font-size: 16px;
    font-weight: 600;
}

.contact-item p {
    margin: 0;
}

.contact-item a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s;
}

.contact-item a:hover {
    color: #d45f1e;
    text-decoration: underline;
}

/* Social Links */
.social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 15px;
}

.social-icon {
    width: 45px;
    height: 45px;
    background-color: rgba(237, 111, 38, 0.1);
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    transition: all 0.3s;
}

.social-icon:hover {
    background-color: var(--primary-color);
    color: var(--text-light);
    transform: translateY(-3px);
}

/* Contact Form */
.contact-form-container {
    margin-bottom: 40px;
}

.contact-form-card {
    background-color: var(--background-white);
    border-radius: 10px;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.form-card-header {
    padding: 25px;
    flex-direction: column;
    align-items: flex-start;
}

.form-card-header p {
    margin: 10px 0 0;
    opacity: 0.9;
}

.contact-form {
    padding: 30px;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #555;
}

.form-group .required {
    color: #e74c3c;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(237, 111, 38, 0.2);
    outline: none;
}

.form-group.has-error input,
.form-group.has-error textarea,
.form-group.has-error select {
    border-color: #e74c3c;
}

.form-group.has-error label {
    color: #e74c3c;
}

.error-message {
    display: block;
    color: #e74c3c;
    margin-top: 5px;
    font-size: 14px;
}

.recaptcha-container {
    margin-bottom: 25px;
}

.recaptcha-placeholder {
    display: flex;
    align-items: center;
    gap: 10px;
    background-color: #f5f5f5;
    padding: 15px;
    border-radius: 5px;
    border: 1px solid #ddd;
    color: #666;
}

.recaptcha-placeholder i {
    font-size: 18px;
    color: #888;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
}

.submit-btn {
    background-color: var(--primary-color);
    color: var(--text-light);
    border: none;
    border-radius: 5px;
    padding: 12px 25px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.3s;
    display: flex;
    align-items: center;
    gap: 10px;
}

.submit-btn:hover {
    background-color: #d45f1e;
    transform: translateY(-2px);
}

.submit-btn i {
    font-size: 16px;
}

/* Form Success Message */
.form-success-message {
    padding: 40px 30px;
    text-align: center;
}

.form-success-message i {
    font-size: 48px;
    color: #2ecc71;
    margin-bottom: 15px;
}

.form-success-message h4 {
    font-size: 24px;
    margin-bottom: 15px;
    color: #333;
}

.form-success-message p {
    margin-bottom: 25px;
    color: #666;
}

.send-new-message {
    background-color: var(--primary-color);
    color: var(--text-light);
    border: none;
    border-radius: 5px;
    padding: 12px 25px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
    margin: 0 auto;
}

.send-new-message:hover {
    background-color: #d45f1e;
}

/* FAQ Section */
.faq-section {
    padding: 80px 0;
    background-color: var(--background-white);
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background-color: var(--background-white);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    margin-bottom: 15px;
    overflow: hidden;
}

.faq-question {
    padding: 20px;
    background-color: #f8f8f8;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s;
}

.faq-question:hover {
    background-color: #f0f0f0;
}

.faq-question h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.faq-question i {
    font-size: 16px;
    color: var(--primary-color);
    transition: transform 0.3s;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item.active .faq-answer {
    padding: 20px;
    max-height: 500px; /* Adjust based on content */
}

.faq-answer p {
    margin: 0;
    line-height: 1.6;
    color: #666;
}

/* Responsive Design */
@media (max-width: 992px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-hero h1 {
        font-size: 36px;
    }
    
    .contact-hero p {
        font-size: 16px;
    }
    
    .faq-question h3 {
        font-size: 16px;
    }
}

@media (max-width: 768px) {
    .contact-hero {
        padding: 60px 0;
    }
    
    .contact-content {
        padding: 60px 0;
    }
    
    .contact-hero h1 {
        font-size: 32px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .contact-card-header,
    .social-card-header,
    .form-card-header {
        padding: 15px;
    }
    
    .contact-form {
        padding: 20px;
    }
    
    .faq-section {
        padding: 60px 0;
    }
}

@media (max-width: 576px) {
    .contact-hero h1 {
        font-size: 28px;
    }
    
    .contact-hero p {
        font-size: 15px;
    }
    
    .contact-hero {
        padding: 40px 0;
    }
    
    .contact-content {
        padding: 40px 0;
    }
    
    .faq-question {
        padding: 15px;
    }
    
    .faq-item.active .faq-answer {
        padding: 15px;
    }
}

.database-error {
    background-color: #fff5f5;
    border-left: 4px solid #e74c3c;
    padding: 15px 20px;
    margin: 15px 20px 0;
    display: flex;
    align-items: center;
    gap: 15px;
}

.database-error i {
    color: #e74c3c;
    font-size: 24px;
}

.database-error p {
    margin: 0;
    color: #555;
} 