/* ====================================================
   HALAMAN KONTAK - STYLESHEET
   PT. Mitra Cerdas Nusantara
   ==================================================== */

.contact-page-section {
    padding: 2.5rem 0 5rem;
    background-color: #f4f5f7;
    min-height: 80vh;
}

.contact-page-container {
    width: 100%;
    max-width: var(--site-max-width, 1520px);
    margin: 0 auto;
    padding: 0 var(--site-gutter, clamp(1.25rem, 3.5vw, 4rem));
    box-sizing: border-box;
}

/* ---------- Hero Section (Banner Merah Maroon) ---------- */
.contact-page-hero {
    background: linear-gradient(135deg, #D81251 0%, #A31131 50%, #800d26 100%);
    border-radius: 24px;
    padding: clamp(2rem, 3.5vw, 3.5rem) clamp(1.5rem, 3vw, 3rem);
    color: #ffffff;
    margin-bottom: 3.5rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

.contact-page-hero::before {
    content: "";
    position: absolute;
    width: 450px;
    height: 450px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    top: -150px;
    right: -100px;
    pointer-events: none;
}

.contact-page-hero::after {
    content: "";
    position: absolute;
    width: 250px;
    height: 250px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 50%;
    bottom: -80px;
    left: -50px;
    pointer-events: none;
}

.hero-contact-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 3rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-contact-title {
    font-size: 2.75rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: #ffffff;
    letter-spacing: -0.02em;
}

.hero-contact-subtitle {
    font-size: 1.15rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.95);
    margin: 0;
    max-width: 620px;
}

.hero-contact-badge-card {
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 20px;
    padding: 1.75rem 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.badge-card-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.badge-icon-box {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.badge-text-title {
    font-weight: 700;
    font-size: 1.05rem;
    color: #ffffff;
}

.badge-text-desc {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.9);
}

/* ---------- Cards Grid Kontak ---------- */
.contact-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 3.5rem;
}

.contact-info-card {
    background-color: #ffffff;
    border-radius: 20px;
    border: 1px solid #e5e7eb;
    padding: 2.25rem;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.04);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.contact-info-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.08);
    border-color: rgba(216, 18, 81, 0.3);
}

.card-icon-circle {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background-color: #fce7f0;
    color: #a30b3a;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.card-info-title {
    font-size: 1.35rem;
    font-weight: 800;
    color: #111827;
    margin: 0;
    line-height: 1.3;
}

.card-info-desc {
    font-size: 0.95rem;
    color: #374151;
    line-height: 1.6;
    margin: 0;
}

.card-info-links {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    margin-top: auto;
    padding-top: 0.75rem;
}

.contact-direct-link {
    font-size: 0.975rem;
    font-weight: 600;
    color: #1f2937;
    text-decoration: none;
    transition: color 0.2s ease;
}

.contact-direct-link.highlight-link {
    color: #b70e43;
    font-weight: 700;
}

.contact-direct-link:hover {
    color: #b70e43;
    text-decoration: underline;
}

.contact-address-text {
    font-style: normal;
    font-size: 0.95rem;
    color: #374151;
    line-height: 1.65;
}

/* ---------- Section Formulir Kontak ---------- */
.contact-form-wrapper {
    background-color: #ffffff;
    border-radius: 24px;
    border: 1px solid #e5e7eb;
    padding: 3rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.form-header {
    margin-bottom: 2.25rem;
}

.form-title {
    font-size: 2rem;
    font-weight: 800;
    color: #111827;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.form-subtitle {
    font-size: 1.05rem;
    color: #374151;
    line-height: 1.6;
    margin: 0;
}

.contact-main-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-row-2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-label {
    font-size: 0.925rem;
    font-weight: 700;
    color: #1f2937;
}

.form-input,
.form-textarea {
    padding: 0.9rem 1.15rem;
    border-radius: 12px;
    border: 1px solid #d1d5db;
    background-color: #ffffff;
    color: #111827;
    font-size: 0.95rem;
    font-family: inherit;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    width: 100%;
}

.form-input:focus,
.form-textarea:focus {
    border-color: #b70e43;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.08);
    outline: none;
}

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

.form-submit-row {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    margin-top: 0.5rem;
}

.contact-submit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    padding: 0.95rem 2.5rem;
    border-radius: 12px;
    background-color: #D81251;
    color: #ffffff;
    font-weight: 700;
    font-size: 1.05rem;
    border: none;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
    font-family: inherit;
}

.contact-submit-btn:hover:not(:disabled) {
    background-color: #b70e43;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.16);
}

.contact-submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Feedback alert */
.form-alert {
    padding: 1rem 1.25rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.form-alert-success {
    background-color: #ecfdf5;
    color: #047857;
    border: 1px solid #a7f3d0;
}

.form-alert-error {
    background-color: #fef2f2;
    color: #b91c1c;
    border: 1px solid #fecaca;
}

/* ---------- Responsive Breakpoints ---------- */
@media (max-width: 1024px) {
    .contact-cards-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .hero-contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .contact-page-hero {
        padding: 2.5rem 2rem;
    }

    .hero-contact-title {
        font-size: 2.25rem;
    }

    .contact-form-wrapper {
        padding: 2.25rem 2rem;
    }
}

@media (max-width: 768px) {
    .contact-page-container {
        padding: 0 1.25rem;
    }

    .contact-page-section {
        padding: 1.5rem 0 3.5rem;
    }

    .contact-cards-grid {
        grid-template-columns: 1fr;
    }

    .form-row-2col {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .hero-contact-title {
        font-size: 1.85rem;
    }

    .hero-contact-subtitle {
        font-size: 1rem;
    }

    .form-title {
        font-size: 1.5rem;
    }

    .contact-submit-btn {
        width: 100%;
    }
}
