/* ========================================
   KOPERASI DESA MERAH PUTIH - CONTACT STYLE
   File: assets/css/kontak.css
   Deskripsi: Styling khusus untuk halaman Kontak
   ======================================== */

/* --- 1. PAGE HEADER EXTENSIONS --- */
.page-header {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.6)), url('https://images.unsplash.com/photo-1577563908411-5077b6dc7624?ixlib=rb-1.2.1&auto=format&fit=crop&w=1950&q=80');
    background-size: cover;
    background-position: center;
    padding: 140px 0 100px;
    margin-bottom: 0;
    position: relative;
    text-align: center;
    clip-path: polygon(0 0, 100% 0, 100% 90%, 0 100%);
}

.page-header h1 {
    font-size: 3.5rem;
    font-weight: 800;
    text-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    margin-bottom: 1rem;
    letter-spacing: -1px;
}

.page-header .breadcrumb {
    background: rgba(255, 255, 255, 0.1);
    display: inline-block;
    padding: 10px 25px;
    border-radius: 50px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* --- 2. INTRO & CARDS --- */
.contact-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 50px;
}

.contact-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-top: 3rem;
}

.contact-card {
    background: var(--white);
    padding: 35px 25px;
    border-radius: var(--border-radius-lg);
    text-align: center;
    box-shadow: var(--shadow);
    border: 1px solid #f0f0f0;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.contact-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--primary-red);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.contact-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    border-color: transparent;
}

.contact-card:hover::after {
    transform: scaleX(1);
}

.contact-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    background: rgba(220, 20, 60, 0.08);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.contact-card:hover .contact-icon {
    background: var(--primary-red);
    transform: scale(1.1);
}

.contact-icon i {
    font-size: 1.8rem;
    color: var(--primary-red);
    transition: color 0.3s ease;
}

.contact-card:hover .contact-icon i {
    color: var(--white);
}

.contact-card h3 {
    margin-bottom: 15px;
    font-size: 1.2rem;
    color: var(--dark);
}

.contact-card p {
    color: var(--gray);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
}

.status-badge {
    display: inline-block;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.status-badge.open {
    background: #e6f7e9;
    color: var(--success);
}

.status-badge.closed {
    background: #ffebee;
    color: var(--primary-red);
}

/* --- 3. MAIN CONTACT SECTION (Form & Map) --- */
.contact-main {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 40px;
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

/* Contact Form */
.contact-form-section {
    padding: 50px;
}

.contact-form-section h2 {
    font-size: 2rem;
    margin-bottom: 10px;
    color: var(--dark);
}

.contact-form-section>p {
    color: var(--gray);
    margin-bottom: 30px;
}

.contact-form .form-group {
    margin-bottom: 20px;
}

.contact-form label {
    font-weight: 500;
    margin-bottom: 8px;
    display: block;
    color: #444;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    background: #f8f9fa;
    border: 1px solid #eee;
    padding: 12px 15px;
    transition: all 0.3s ease;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    background: var(--white);
    border-color: var(--primary-red);
    box-shadow: 0 0 0 4px rgba(220, 20, 60, 0.05);
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 0.95rem;
}

.checkbox-label input {
    width: auto;
    margin: 0;
}

/* Map Section */
.contact-map-section {
    background: #fdfdfd;
    padding: 50px;
    border-left: 1px solid #eee;
    display: flex;
    flex-direction: column;
}

.contact-map-section h2 {
    margin-bottom: 25px;
}

.map-container {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    margin-bottom: 30px;
    height: 300px;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.directions-info {
    background: var(--white);
    padding: 25px;
    border-radius: 15px;
    box-shadow: var(--shadow);
    border-left: 4px solid var(--primary-red);
}

.directions-info h3 {
    font-size: 1.1rem;
    margin-bottom: 15px;
}

.directions-info ul {
    list-style: none;
    padding: 0;
}

.directions-info li {
    margin-bottom: 15px;
    display: flex;
    gap: 12px;
    font-size: 0.9rem;
    color: var(--gray);
}

.directions-info li i {
    color: var(--primary-red);
    margin-top: 3px;
}

/* --- 4. SOCIAL & QUICK CONTACT --- */
.social-contact {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    margin-top: 2rem;
}

.social-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 20px;
    margin-top: 25px;
}

.social-card {
    background: var(--white);
    padding: 25px 20px;
    border-radius: 15px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
    text-decoration: none;
    color: var(--gray);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.social-card i {
    font-size: 2rem;
    margin-bottom: 15px;
    transition: transform 0.3s ease;
}

.social-card span {
    font-weight: 700;
    margin-bottom: 5px;
    display: block;
    color: var(--dark);
}

.social-card small {
    font-size: 0.8rem;
    opacity: 0.8;
}

/* Social Colors */
.social-card.facebook i {
    color: #1877F2;
}

.social-card.instagram i {
    color: #E1306C;
}

.social-card.whatsapp i {
    color: #25D366;
}

.social-card.youtube i {
    color: #FF0000;
}

.social-card.twitter i {
    color: #1DA1F2;
}

.social-card.telegram i {
    color: #0088cc;
}

.social-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.social-card:hover i {
    transform: scale(1.2);
}

/* Quick Contact List */
.quick-contact {
    background: var(--dark);
    color: var(--white);
    padding: 40px;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.quick-contact h2 {
    color: var(--white);
    margin-bottom: 30px;
}

.quick-contact-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.quick-btn {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: var(--white);
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.quick-btn:hover {
    background: var(--white);
    color: var(--primary-red);
    transform: translateX(5px);
}

.quick-btn i {
    width: 30px;
    font-size: 1.2rem;
}

/* --- 5. DEPARTMENT CONTACTS --- */
.department-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 2rem;
}

.department-card {
    background: var(--white);
    padding: 30px;
    border-radius: 15px;
    box-shadow: var(--shadow);
    border-top: 5px solid var(--primary-red);
    transition: all 0.3s ease;
    text-align: center;
}

.department-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.department-card>i {
    font-size: 2.5rem;
    color: #ddd;
    margin-bottom: 20px;
    display: block;
}

.department-card h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.department-card p {
    font-size: 0.9rem;
    color: var(--gray);
    margin-bottom: 20px;
    min-height: 2.7em;
}

.department-card ul {
    list-style: none;
    padding-top: 20px;
    border-top: 1px solid #eee;
    text-align: left;
}

.department-card li {
    margin-bottom: 10px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--dark);
}

.department-card li i {
    color: var(--primary-red);
    width: 20px;
    text-align: center;
}

/* --- 6. FAQ (Reuse + Override) --- */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--white);
    border: 1px solid #f0f0f0;
    margin-bottom: 15px;
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item.active {
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    border-color: transparent;
}

.faq-question {
    width: 100%;
    padding: 20px 25px;
    text-align: left;
    background: transparent;
    border: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-weight: 600;
    font-size: 1.05rem;
    color: var(--dark);
}

.faq-item.active .faq-question {
    color: var(--primary-red);
    background: #fafafa;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    background: #fafafa;
}

.faq-item.active .faq-answer {
    max-height: 300px;
    padding-bottom: 25px;
    border-top: 1px dashed #eee;
}

.faq-answer p {
    padding: 15px 25px 0;
    margin: 0;
    font-size: 0.95rem;
    color: #666;
}

/* --- RESPONSIVE --- */
@media (max-width: 1024px) {
    .contact-cards {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact-main {
        grid-template-columns: 1fr;
    }

    .contact-map-section {
        border-left: none;
        border-top: 1px solid #eee;
        padding: 40px;
    }

    .social-contact {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .page-header h1 {
        font-size: 2.5rem;
    }

    .contact-cards {
        grid-template-columns: 1fr;
    }

    .contact-form-section {
        padding: 30px 20px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }
}

/* --- MOBILE OPTIMIZATION --- */
@media (max-width: 576px) {
    .page-header {
        padding: 100px 0 60px;
    }

    .page-header h1 {
        font-size: 2rem;
    }

    .contact-intro {
        margin-bottom: 30px;
    }

    .contact-card {
        padding: 30px 20px;
    }

    .contact-form-section {
        padding: 25px 15px;
    }

    .contact-map-section {
        padding: 25px 15px;
    }

    .map-container {
        height: 250px;
    }

    .quick-contact {
        padding: 30px 20px;
    }

    .department-grid {
        grid-template-columns: 1fr;
    }
}