/* assets/css/contact.css */
/* Halaman Contact - Dinamis */

/* ========== HERO SECTION ========== */
.contact-hero {
    position: relative;
    min-height: 400px;
    background: linear-gradient(135deg, #1C150F 0%, #5C6844 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    overflow: hidden;
}

.contact-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('/assets/img/pattern.png') repeat;
    opacity: 0.1;
}

.contact-hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 0 20px;
}

.contact-hero h1 {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 20px;
    animation: fadeInUp 0.8s ease;
}

.contact-hero p {
    font-size: 18px;
    opacity: 0.9;
    animation: fadeInUp 0.8s ease 0.2s both;
}

/* ========== CONTACT INFO - DIPERBAIKI ========== */
.contact-info {
    flex: 1;
    background: white;
    border-radius: 30px;
    padding: 45px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-info:hover {
    transform: translateY(-5px);
    box-shadow: 0 30px 50px rgba(0,0,0,0.12);
}

.contact-info h2 {
    font-size: 36px;
    font-weight: 800;
    color: #1C150F;
    margin-bottom: 35px;
    position: relative;
    display: inline-block;
}

.contact-info h2:after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 0;
    width: 70px;
    height: 4px;
    background: linear-gradient(90deg, #5C6844, #8AA57C);
    border-radius: 2px;
}

/* Contact Detail Items */
.contact-detail {
    margin-top: 35px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
    padding: 18px 20px;
    border-radius: 20px;
    transition: all 0.3s ease;
    background: #FFFFFF;
    border: 1px solid #F0EDE5;
}

.contact-item:hover {
    background: #F9F8F5;
    transform: translateX(8px);
    border-color: #5C6844;
    box-shadow: 0 5px 15px rgba(92,104,68,0.1);
}

/* Contact Icon */
.contact-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #5C6844 0%, #7A8B5E 100%);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 28px;
    transition: all 0.3s ease;
}

.contact-item:hover .contact-icon {
    transform: scale(1.05);
    border-radius: 50%;
}

.contact-icon i {
    color: white !important;
    font-size: 26px;
}

/* Contact Text */
.contact-text {
    flex: 1;
}

.contact-text h3 {
    font-size: 18px;
    font-weight: 700;
    color: #1C150F;
    margin-bottom: 8px;
}

.contact-text p {
    font-size: 14px;
    color: #555;
    line-height: 1.6;
    margin: 0;
}

.contact-text a {
    color: #5C6844;
    text-decoration: none;
    transition: color 0.3s ease;
    font-weight: 500;
}

.contact-text a:hover {
    color: #3d482e;
    text-decoration: underline;
}
/* Social Media Section */
.social-section {
    flex: 1;
    background: white;
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

.social-section h2 {
    font-size: 32px;
    font-weight: 800;
    color: #1C150F;
    margin-bottom: 30px;
    position: relative;
    display: inline-block;
}

.social-section h2:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 3px;
    background: #5C6844;
}

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

.social-card {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: #F5F2E8;
    border-radius: 16px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(92,104,68,0.15);
}

.social-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
}

.social-icon.instagram { background: #E4405F; }
.social-icon.linkedin { background: #0077B5; }
.social-icon.tiktok { background: #000000; }
.social-icon.youtube { background: #FF0000; }
.social-icon.twitter { background: #1DA1F2; }
.social-icon.facebook { background: #1877F2; }

.social-info h4 {
    font-size: 16px;
    font-weight: 700;
    color: #1C150F;
    margin-bottom: 5px;
}

.social-info p {
    font-size: 12px;
    color: #666;
}
/* FIX: Icon contact & social agar tidak tertimpa style lain */
.contact-icon i {
    color: white !important;
    font-size: 20px;
}

.social-icon i {
    color: white !important;
    font-size: 22px;
}
/* Map Section */
.map-section {
    padding: 0 0 80px 0;
    background: #F8F7F3;
}

.map-container {
    max-width: 1200px;
    margin: 0 auto;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.map-container iframe {
    width: 100%;
    height: 400px;
    border: 0;
}

/* ========== ANIMATIONS ========== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========== RESPONSIVE LENGKAP UNTUK HALAMAN CONTACT ========== */

/* Extra Large (1200px - 1399px) */
@media (max-width: 1399px) {
    .contact-info, .social-section {
        padding: 35px;
    }
    
    .contact-info h2, .social-section h2 {
        font-size: 32px;
    }
    
    .contact-icon {
        width: 55px;
        height: 55px;
        font-size: 24px;
    }
    
    .contact-icon i {
        font-size: 24px;
    }
    
    .social-grid {
        gap: 15px;
    }
    
    .social-card {
        padding: 15px;
    }
    
    .map-container iframe {
        height: 380px;
    }
}

/* Large (992px - 1199px) */
@media (max-width: 1199px) {
    .contact-container {
        gap: 30px;
        padding: 0 20px;
    }
    
    .contact-info, .social-section {
        padding: 30px;
    }
    
    .contact-info h2, .social-section h2 {
        font-size: 30px;
        margin-bottom: 25px;
    }
    
    .contact-item {
        padding: 15px 18px;
        gap: 15px;
    }
    
    .contact-icon {
        width: 50px;
        height: 50px;
    }
    
    .contact-icon i {
        font-size: 22px;
    }
    
    .contact-text h3 {
        font-size: 16px;
    }
    
    .contact-text p {
        font-size: 13px;
    }
    
    .social-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .social-card {
        padding: 15px;
        gap: 12px;
    }
    
    .social-icon {
        width: 45px;
        height: 45px;
        font-size: 20px;
    }
    
    .social-info h4 {
        font-size: 14px;
    }
    
    .social-info p {
        font-size: 11px;
    }
    
    .map-container iframe {
        height: 350px;
    }
}

/* Medium (768px - 991px) */
@media (max-width: 991px) {
    .contact-container {
        flex-direction: column;
        gap: 25px;
        padding: 0 20px;
    }
    
    .contact-info, .social-section {
        padding: 30px;
        width: 100%;
    }
    
    .contact-info h2, .social-section h2 {
        font-size: 28px;
        display: inline-block;
    }
    
    .contact-info h2:after, .social-section h2:after {
        width: 60px;
        height: 3px;
    }
    
    .contact-item {
        padding: 15px;
        gap: 15px;
    }
    
    .contact-icon {
        width: 48px;
        height: 48px;
        border-radius: 15px;
    }
    
    .contact-icon i {
        font-size: 20px;
    }
    
    .contact-text h3 {
        font-size: 15px;
    }
    
    .contact-text p {
        font-size: 13px;
    }
    
    .social-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .social-card {
        padding: 15px;
    }
    
    .social-icon {
        width: 45px;
        height: 45px;
        font-size: 20px;
    }
    
    .social-info h4 {
        font-size: 14px;
    }
    
    .map-container iframe {
        height: 320px;
    }
}

/* Small (576px - 767px) */
@media (max-width: 767px) {
    .contact-hero {
        min-height: 280px;
    }
    
    .contact-hero h1 {
        font-size: 28px;
    }
    
    .contact-hero p {
        font-size: 13px;
    }
    
    .contact-section {
        padding: 40px 0;
    }
    
    .contact-container {
        gap: 20px;
        padding: 0 15px;
    }
    
    .contact-info, .social-section {
        padding: 25px;
    }
    
    .contact-info h2, .social-section h2 {
        font-size: 24px;
        margin-bottom: 20px;
        display: block;
        text-align: center;
    }
    
    .contact-info h2:after, .social-section h2:after {
        left: 50%;
        transform: translateX(-50%);
        width: 50px;
    }
    
    .contact-item {
        padding: 12px 15px;
        gap: 12px;
        flex-direction: row;
        text-align: left;
    }
    
    .contact-icon {
        width: 45px;
        height: 45px;
        border-radius: 12px;
    }
    
    .contact-icon i {
        font-size: 20px;
    }
    
    .contact-text h3 {
        font-size: 14px;
    }
    
    .contact-text p {
        font-size: 12px;
    }
    
    .social-section h2 {
        text-align: center;
    }
    
    .social-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .social-card {
        padding: 12px 15px;
        gap: 12px;
        justify-content: center;
    }
    
    .social-icon {
        width: 42px;
        height: 42px;
        font-size: 18px;
    }
    
    .social-info {
        text-align: left;
    }
    
    .social-info h4 {
        font-size: 13px;
    }
    
    .social-info p {
        font-size: 10px;
    }
    
    .map-section {
        padding: 0 0 50px 0;
    }
    
    .map-container {
        padding: 0 15px;
    }
    
    .map-container iframe {
        height: 280px;
        border-radius: 16px;
    }
}

/* Extra Small (320px - 575px) */
@media (max-width: 575px) {
    .contact-hero {
        min-height: 250px;
    }
    
    .contact-hero h1 {
        font-size: 24px;
    }
    
    .contact-hero p {
        font-size: 12px;
    }
    
    .contact-section {
        padding: 30px 0;
    }
    
    .contact-container {
        gap: 15px;
        padding: 0 12px;
    }
    
    .contact-info, .social-section {
        padding: 20px;
    }
    
    .contact-info h2, .social-section h2 {
        font-size: 22px;
        margin-bottom: 18px;
    }
    
    .contact-info h2:after, .social-section h2:after {
        width: 40px;
        height: 2px;
    }
    
    .contact-item {
        padding: 10px 12px;
        gap: 10px;
        flex-wrap: wrap;
        justify-content: center;
        text-align: center;
    }
    
    .contact-icon {
        width: 40px;
        height: 40px;
        border-radius: 10px;
    }
    
    .contact-icon i {
        font-size: 18px;
    }
    
    .contact-text {
        text-align: center;
        flex: auto;
    }
    
    .contact-text h3 {
        font-size: 13px;
    }
    
    .contact-text p {
        font-size: 11px;
        word-break: break-all;
    }
    
    .social-grid {
        gap: 10px;
    }
    
    .social-card {
        padding: 10px 12px;
        gap: 10px;
        flex-wrap: wrap;
        justify-content: center;
        text-align: center;
    }
    
    .social-icon {
        width: 38px;
        height: 38px;
        font-size: 16px;
    }
    
    .social-info {
        text-align: center;
        flex: auto;
    }
    
    .social-info h4 {
        font-size: 12px;
    }
    
    .social-info p {
        font-size: 9px;
        word-break: break-all;
    }
    
    .map-container iframe {
        height: 220px;
        border-radius: 12px;
    }
}

/* Landscape mode untuk mobile */
@media (max-width: 767px) and (orientation: landscape) {
    .contact-hero {
        min-height: 200px;
    }
    
    .contact-hero h1 {
        font-size: 28px;
    }
    
    .contact-container {
        gap: 20px;
    }
    
    .contact-item {
        flex-direction: row;
        text-align: left;
    }
    
    .contact-text {
        text-align: left;
    }
    
    .social-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .social-card {
        flex-direction: row;
        text-align: left;
    }
    
    .map-container iframe {
        height: 250px;
    }
}

/* Tablet landscape (768px - 1024px) */
@media (min-width: 768px) and (max-width: 1024px) and (orientation: landscape) {
    .contact-container {
        flex-direction: row;
        gap: 30px;
    }
    
    .contact-info, .social-section {
        padding: 30px;
    }
    
    .social-grid {
        grid-template-columns: 1fr;
    }
    
    .map-container iframe {
        height: 350px;
    }
}

/* High DPI Screens (Retina) */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .contact-icon {
        image-rendering: -webkit-optimize-contrast;
    }
}

/* Touch device optimization */
@media (hover: none) and (pointer: coarse) {
    .contact-item:active,
    .social-card:active {
        transform: scale(0.98);
    }
    
    .contact-icon,
    .social-icon {
        min-width: 44px;
        min-height: 44px;
    }
    
    .btn-preview-contact,
    .btn-edit-contact {
        min-height: 44px;
    }
}

/* Loading state */
.contact-loading {
    text-align: center;
    padding: 40px;
}

.contact-loading .spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #5C6844;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 15px;
}

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

@media (max-width: 575px) {
    .contact-loading .spinner {
        width: 30px;
        height: 30px;
    }
}

/* Smooth transition untuk responsive */
.contact-info,
.social-section,
.contact-item,
.social-card,
.map-container iframe {
    transition: all 0.3s ease;
}