/* Contact Page Styles - Matching Blog Theme */
:root {
    --primary: #1A886D;
    --primary-dark: #0e5f4a;
    --primary-light: #e8f5f0;
    --primary-soft: rgba(26, 136, 109, 0.1);
    --secondary: #f5f7fa;
    --accent: #ffb347;
    --text-dark: #1e293b;
    --text-muted: #64748b;
    --text-light: #ffffff;
    --border-light: #e2e8f0;
    --border-focus: #1A886D;
    --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 12px 30px rgba(26, 136, 109, 0.15);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --transition: all 0.3s ease;
}

/* General Styles */
a {
    text-decoration: none;
    color: inherit;
}

a:hover {
    color: inherit;
}

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

/* Hero Section - Matching Blog */
#contact-hero {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 60px 20px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    position: relative;
    overflow: hidden;
}

#contact-hero::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    pointer-events: none;
}

#contact-hero::after {
    content: '';
    position: absolute;
    bottom: -80px;
    left: -80px;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 50%;
    pointer-events: none;
}

#contact-hero h1 {
    font-weight: 700;
    font-size: 48px;
    margin-bottom: 16px;
    color: var(--text-light);
    position: relative;
    z-index: 1;
    animation: fadeInUp 0.6s ease-out forwards;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

#contact-hero h1 span {
    color: var(--accent);
    position: relative;
}

#contact-hero p {
    max-width: 672px;
    font-size: 20px;
    color: var(--text-light);
    opacity: 0.9;
    position: relative;
    z-index: 1;
    animation: fadeInUp 0.7s ease-out forwards;
    line-height: 1.6;
}

/* Contact Body Section */
#contact-body {
    background-color: #f8fafc;
    padding: 60px 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 40px;
}

/* Left Side - Contact Info */
.info-header {
    margin-bottom: 32px;
}

.info-header h2 {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 12px;
}

.info-header h2 span {
    color: var(--primary);
}

.info-header p {
    color: var(--text-muted);
    font-size: 16px;
    line-height: 1.6;
}

.info-cards {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 32px;
}

.info-card {
    display: flex;
    gap: 20px;
    padding: 24px;
    background: #ffffff;
    border-radius: var(--radius-lg);
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
    position: relative;
    overflow: hidden;
    animation: fadeInScale 0.5s ease-out;
}

.info-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--primary-dark));
    opacity: 0;
    transition: var(--transition);
}

.info-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary);
}

.info-card:hover::before {
    opacity: 1;
}

.card-icon {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    background: var(--primary-soft);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    transition: var(--transition);
}

.info-card:hover .card-icon {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--text-light);
    transform: scale(1.1) rotate(5deg);
}

.card-content {
    flex: 1;
}

.card-content h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.main-info {
    font-size: 16px;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 4px;
}

.sub-info {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.card-link {
    font-size: 14px;
    font-weight: 600;
    color: var(--primary);
    transition: var(--transition);
    display: inline-block;
}

.card-link:hover {
    color: var(--primary-dark);
    transform: translateX(5px);
}

/* Social Links */
.social-links h4 {
    font-size: 16px;
    color: var(--text-muted);
    margin-bottom: 16px;
}

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

.social-icon {
    width: 40px;
    height: 40px;
    background: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    transition: var(--transition);
    border: 1px solid var(--border-light);
}

.social-icon:hover {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--text-light);
    transform: translateY(-4px);
    border-color: transparent;
    box-shadow: var(--shadow-hover);
}

/* Right Side - Contact Form */
.contact-form-wrapper {
    background: #ffffff;
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-light);
    position: relative;
    overflow: hidden;
    animation: fadeInScale 0.5s ease-out;
}

.contact-form-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--primary-dark));
}

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

.form-header h2 {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.form-header h2 span {
    color: var(--primary);
}

.form-header p {
    color: var(--text-muted);
    font-size: 15px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

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

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-weight: 600;
    font-size: 14px;
    color: var(--text-dark);
}

.required {
    color: var(--accent);
    margin-left: 2px;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 14px 16px;
    border: 1.5px solid var(--border-light);
    border-radius: var(--radius-md);
    font-size: 14px;
    font-family: inherit;
    transition: var(--transition);
    background: #ffffff;
    color: var(--text-dark);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px var(--primary-soft);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
    opacity: 0.7;
}

.form-group select {
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    appearance: none;
}

.form-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin: 8px 0;
}

.form-checkbox input {
    width: 18px;
    height: 18px;
    margin-top: 3px;
    accent-color: var(--primary);
}

.form-checkbox label {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.5;
}

.form-checkbox a {
    color: var(--primary);
    font-weight: 600;
    transition: var(--transition);
}

.form-checkbox a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.submit-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--text-light);
    border: none;
    border-radius: var(--radius-md);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    margin-top: 10px;
    box-shadow: 0 4px 12px rgba(26, 136, 109, 0.2);
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(26, 136, 109, 0.3);
}

.submit-btn svg {
    transition: transform var(--transition);
}

.submit-btn:hover svg {
    transform: translateX(5px);
}

/* Map Section */
#contact-map {
    background-color: #ffffff;
    padding: 60px 0;
}

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

.map-header h2 {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 12px;
}

.map-header h2 span {
    color: var(--primary);
}

.map-header p {
    color: var(--text-muted);
    font-size: 16px;
}

.map-container {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-light);
    height: 450px;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    filter: grayscale(20%);
    transition: var(--transition);
}

.map-container:hover iframe {
    filter: grayscale(0%);
}

.map-card {
    position: absolute;
    bottom: 30px;
    left: 30px;
    background: #ffffff;
    padding: 24px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    max-width: 300px;
    border-left: 4px solid var(--primary);
    animation: fadeInUp 0.8s ease-out;
}

.map-card-icon {
    width: 40px;
    height: 40px;
    background: var(--primary-soft);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    margin-bottom: 12px;
}

.map-card h4 {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.map-card p {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 12px;
    line-height: 1.6;
}

.map-link {
    font-size: 14px;
    font-weight: 600;
    color: var(--primary);
    transition: var(--transition);
}

.map-link:hover {
    color: var(--primary-dark);
    transform: translateX(5px);
}

/* FAQ Section */
#contact-faq {
    background-color: #f8fafc;
    padding: 60px 0;
}

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

.faq-header h2 {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 12px;
}

.faq-header h2 span {
    color: var(--primary);
}

.faq-header p {
    color: var(--text-muted);
    font-size: 16px;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.faq-item {
    background: #ffffff;
    border-radius: var(--radius-lg);
    padding: 24px;
    border: 1px solid var(--border-light);
    transition: var(--transition);
}

.faq-item:hover {
    box-shadow: var(--shadow-hover);
    border-color: var(--primary);
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.faq-question h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0;
    flex: 1;
}

.faq-toggle {
    font-size: 24px;
    color: var(--primary);
    transition: var(--transition);
}

.faq-item.active .faq-toggle {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 200px;
    margin-top: 16px;
}

.faq-answer p {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.6;
}

/* Success Popup */
.success-popup {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: #ffffff;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-hover);
    z-index: 9999;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    border-left: 4px solid var(--primary);
    animation: slideUp 0.5s ease;
    max-width: 400px;
    width: 90%;
}

.popup-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    font-size: 24px;
    font-weight: bold;
}

.popup-content h4 {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 4px;
}

.popup-content p {
    font-size: 14px;
    color: var(--text-muted);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

/* Responsive Design */

/* Tablet Landscape */
@media (max-width: 1200px) {
    .contact-grid {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }

    #contact-hero h1 {
        font-size: 42px;
    }

    .info-header h2,
    .map-header h2,
    .faq-header h2 {
        font-size: 30px;
    }
}

/* Tablet Portrait */
@media (max-width: 1024px) {
    #contact-hero h1 {
        font-size: 36px;
    }

    #contact-hero p {
        font-size: 18px;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .faq-grid {
        grid-template-columns: 1fr;
    }

    .map-card {
        bottom: 20px;
        left: 20px;
        max-width: 280px;
    }
}

/* Mobile Landscape */
@media (max-width: 768px) {
    #contact-hero {
        padding: 50px 20px;
    }

    #contact-hero h1 {
        font-size: 30px;
    }

    #contact-hero p {
        font-size: 16px;
        padding: 0 15px;
    }

    .info-header h2,
    .map-header h2,
    .faq-header h2 {
        font-size: 26px;
    }

    .contact-form-wrapper {
        padding: 30px;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .map-card {
        position: static;
        max-width: 100%;
        margin-top: 20px;
        border-left: none;
        border-top: 4px solid var(--primary);
    }

    .map-container {
        height: auto;
    }

    .map-container iframe {
        height: 350px;
    }
}

/* Mobile Portrait */
@media (max-width: 576px) {
    #contact-hero h1 {
        font-size: 26px;
    }

    #contact-hero p {
        font-size: 14px;
    }

    .info-header h2,
    .map-header h2,
    .faq-header h2 {
        font-size: 24px;
    }

    .info-card {
        flex-direction: column;
        padding: 20px;
    }

    .card-icon {
        margin-bottom: 10px;
    }

    .contact-form-wrapper {
        padding: 20px;
    }

    .social-icons {
        justify-content: center;
    }

    .faq-item {
        padding: 20px;
    }

    .faq-question h3 {
        font-size: 14px;
    }

    .success-popup {
        width: 90%;
        padding: 15px;
    }
}

/* Small Mobile */
@media (max-width: 380px) {
    #contact-hero h1 {
        font-size: 22px;
    }

    #contact-hero p {
        font-size: 13px;
    }

    .info-header h2,
    .map-header h2,
    .faq-header h2 {
        font-size: 20px;
    }

    .form-header h2 {
        font-size: 22px;
    }

    .form-checkbox label {
        font-size: 12px;
    }
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
    .info-card:hover,
    .submit-btn:hover,
    .social-icon:hover {
        transform: none;
    }

    .submit-btn:active {
        transform: scale(0.98);
    }
}

/* Print Styles */
@media print {
    #contact-hero {
        background: none;
        color: #000;
    }

    #contact-hero h1,
    #contact-hero p {
        color: #000;
    }

    .info-card,
    .contact-form-wrapper,
    .map-container,
    .faq-item {
        box-shadow: none;
        border: 1px solid #ccc;
        break-inside: avoid;
    }

    .social-links,
    .submit-btn,
    .map-card {
        display: none;
    }
}


/* FAQ Section Enhanced Styles */
.faq-item {
    background: #ffffff;
    border-radius: var(--radius-lg);
    padding: 24px;
    border: 1px solid var(--border-light);
    transition: var(--transition);
    cursor: pointer;
    margin-bottom: 16px;
}

.faq-item:hover {
    box-shadow: var(--shadow-hover);
    border-color: var(--primary);
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.faq-question h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0;
    flex: 1;
    padding-right: 20px;
}

.faq-toggle {
    font-size: 24px;
    font-weight: 600;
    color: var(--primary);
    transition: transform 0.3s ease;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-soft);
    border-radius: 50%;
}

.faq-item.active .faq-toggle {
    transform: rotate(45deg);
    background: var(--primary);
    color: white;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 200px;
    margin-top: 16px;
}

.faq-answer p {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.8;
    margin: 0;
    padding-top: 8px;
    border-top: 1px dashed var(--border-light);
}

/* Animation for FAQ */
.faq-item {
    animation: fadeInUp 0.5s ease-out forwards;
    opacity: 0;
}

.faq-item:nth-child(1) { animation-delay: 0.1s; }
.faq-item:nth-child(2) { animation-delay: 0.2s; }
.faq-item:nth-child(3) { animation-delay: 0.3s; }
.faq-item:nth-child(4) { animation-delay: 0.4s; }
.faq-item:nth-child(5) { animation-delay: 0.5s; }
.faq-item:nth-child(6) { animation-delay: 0.6s; }

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

/* Responsive FAQ */
@media (max-width: 768px) {
    .faq-grid {
        grid-template-columns: 1fr;
    }

    .faq-question h3 {
        font-size: 15px;
    }
}

@media (max-width: 576px) {
    .faq-item {
        padding: 20px;
    }

    .faq-question h3 {
        font-size: 14px;
    }

    .faq-toggle {
        width: 24px;
        height: 24px;
        font-size: 20px;
    }
}
