/* ============================================
   CONTACT PAGE (KONTAK.HTML) STYLING
   ============================================ */

.contact-page {
    background: linear-gradient(180deg, rgba(252, 252, 252, 1) 0%, rgba(243, 224, 201, 1) 100%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
    width: 100%;
}

.div {
    padding: clamp(1.5rem, 4vw, 3.5rem) clamp(1.25rem, 3.5vw, 1.75rem);
    max-width: 1440px;
    text-align: center;
    margin: 0 auto;
}

.div-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
}

.text-wrapper-2 {
    font-family: "Poppins-Bold", Helvetica;
    font-weight: 500;
    color: #6b4423;
    font-size: clamp(32px, 6vw, 60px);
    line-height: 1.2;
    margin: 0;
}

.from-humble-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-top: 1rem;
}

.from-humble {
    font-family: "Poppins-Regular", Helvetica;
    font-weight: 400;
    color: #8b6f47;
    font-size: clamp(14px, 2.5vw, 18px);
    line-height: 1.6;
    max-width: 800px;
    margin: 0;
}

.eyebrow {
    font-family: "Poppins-SemiBold", Helvetica;
    font-size: 14px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #c68a44;
    margin-bottom: 0.75rem;
    display: inline-block;
}

.contact-section {
    max-width: 1200px;
    margin: 0 auto 5rem;
    padding: 5rem clamp(1.5rem, 4vw, 3rem);
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: 2.5rem;
    align-items: flex-start;
}

.contact-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
}

.info-card {
    background: #ffffff;
    border-radius: 24px;
    padding: 1.75rem;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    min-height: 180px;
}

.info-card h3 {
    margin: 0;
    font-family: "Poppins-SemiBold", Helvetica;
    color: #6b4423;
}
.judul {
    margin: 0;
    font-family: "Poppins-SemiBold", Helvetica;
    color: #6b4423;
    text-align: center;
}


.info-card p {
    margin: 0;
    font-family: "Poppins-Regular", Helvetica;
    color: #8b6f47;
    line-height: 1.4;
}

.info-card a {
    margin-top: auto;
    font-family: "Poppins-SemiBold", Helvetica;
    color: #c68a44;
    text-decoration: none;
}

.info-card .tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.3rem 0.9rem;
    background: #f5e6d3;
    border-radius: 999px;
    font-size: 13px;
    font-family: "Poppins-SemiBold", Helvetica;
    color: #6b4423;
    width: fit-content;
}

.icon-wrapper {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    background: #f5e6d3;
    color: #c68a44;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.map-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.map-header .icon-wrapper {
    flex-shrink: 0;
}

.map-header .judul {
    text-align: left;
    margin: 0;
}

.map-card {
    grid-column: 1 / -1;
}

.map-placeholder {
    margin-top: 1rem;
    background: linear-gradient(135deg, #f0e2d0, #d9c3aa);
    border-radius: 18px;
    height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6b4423;
    font-family: "Poppins-SemiBold", Helvetica;
}

/* Responsive map embed wrapper - soft modern design */
.map-embed-wrapper {
    margin-top: 1rem;
    border-radius: 16px;
    max-width: 100%;
    overflow: hidden;
}
.map-responsive {
    position: relative;
    width: 100%;
    padding-bottom: 42%; /* very compact for soft modern look */
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(107, 68, 35, 0.08), 0 2px 4px rgba(0,0,0,0.03);
    background: #f9f7f5;
    border: 1px solid rgba(198, 138, 68, 0.08);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}
.map-responsive:hover {
    box-shadow: 0 8px 16px rgba(107, 68, 35, 0.12), 0 4px 8px rgba(0,0,0,0.05);
    transform: translateY(-1px);
}
.map-responsive iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
    border-radius: 12px;
}
.map-actions {
    margin-top: 0.75rem;
    display: flex;
    gap: 0.6rem;
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-end;
}
.map-actions .btn {
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}
.map-actions .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(198, 138, 68, 0.15);
}

/* Reduce map/card vertical footprint on medium screens */
@media (max-width: 1024px) {
    .map-responsive { 
        padding-bottom: 48%;
        box-shadow: 0 3px 10px rgba(107, 68, 35, 0.06), 0 1px 3px rgba(0,0,0,0.02);
    }
    .map-actions { justify-content: flex-start; }
    .contact-section { padding: 3rem clamp(1rem, 3vw, 2rem); gap: 1.5rem; }
    .info-card { min-height: 140px; padding: 1.25rem; }
}

/* On small screens stack the map action buttons and make map slightly taller for touch */
@media (max-width: 600px) {
    .map-responsive { padding-bottom: 54%; }
    .map-actions { 
        width: 100%;
        gap: 0.4rem;
        justify-content: space-between;
    }
    .map-actions .btn { 
        flex: 1;
        padding: 0.45rem 0.5rem;
        font-size: 0.75rem;
    }
    .contact-section { padding: 2rem 1rem; }
}

.contact-form-card {
    background: #ffffff;
    padding: clamp(1.75rem, 3vw, 2.75rem);
    border-radius: 28px;
    box-shadow: 0px 15px 30px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.contact-form-card h2 {
    margin: 0.15rem 0 0.5rem;
    font-family: "Poppins-Bold", Helvetica;
    color: #6b4423;
}

.contact-form-card p {
    margin: 0;
    color: #8b6f47;
    font-family: "Poppins-Regular", Helvetica;
}

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

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

.two-column {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.form-row label,
.form-group label {
    font-family: "Poppins-SemiBold", Helvetica;
    font-size: 15px;
    color: #6b4423;
}

.form-row input,
.form-row textarea,
.form-group input {
    width: 100%;
    border: 1px solid #e5d5c3;
    border-radius: 18px;
    padding: 0.85rem 1.25rem;
    background-color: #fdf9f3;
    font-family: "Poppins-Regular", Helvetica;
    color: #6b4423;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

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

.form-row input:focus,
.form-row textarea:focus,
.form-group input:focus {
    outline: none;
    border-color: #c68a44;
    box-shadow: 0 0 0 3px rgba(198, 138, 68, 0.15);
}

.contact-form-card .btn {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.95rem 1.75rem;
    border-radius: 999px;
    background-color: #8b6f47;
    border: none;
    font-family: "Poppins-SemiBold", Helvetica;
}

.contact-form-card .btn i {
    font-size: 1rem;
}

@media (max-width: 1024px) {
    .contact-section {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .contact-section {
        gap: 1.75rem;
    }
    .contact-details {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    .two-column {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .contact-header {
        padding: 3rem 1.25rem 1.5rem;
    }
    .contact-section {
        padding: 0 1.25rem 3rem;
    }
    .contact-details {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
    .info-card {
        padding: 1.25rem;
        min-height: auto;
    }
    .contact-form-card {
        padding: 1.5rem;
    }
}


/* ============================================
   ANIMATIONS FOR CONTACT
   ============================================ */

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

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-8px);
    }
}

@keyframes glow {
    0%, 100% {
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
    }
    50% {
        box-shadow: 0 12px 32px rgba(198, 138, 68, 0.2);
    }
}

/* Apply animations */
.div-wrapper {
    animation: fadeInDown 0.8s ease-out;
}

.from-humble-wrapper {
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.contact-details {
    animation: slideInLeft 0.8s ease-out 0.3s both;
}

.info-card {
    animation: scaleIn 0.6s ease-out both;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.info-card:nth-child(1) { animation-delay: 0.4s; }
.info-card:nth-child(2) { animation-delay: 0.45s; }
.info-card:nth-child(3) { animation-delay: 0.5s; }
.info-card:nth-child(4) { animation-delay: 0.55s; }
.info-card:nth-child(5) { animation-delay: 0.6s; }

/* Hover effects for devices that support hover (desktop) */
@media (hover: hover) and (pointer: fine) {
    .info-card:hover {
        transform: translateY(-8px);
        animation: glow 0.6s ease-in-out;
    }

    .icon-wrapper {
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }
}

/* Touch fallback: subtle active state without 3D/hover animations */
.info-card:active {
    transform: translateY(-4px);
}

/* Form card animation */
.contact-form-card {
    animation: slideInRight 0.8s ease-out 0.65s both;
}

/* Form inputs animations */
.form-row input,
.form-row textarea,
.form-group input {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.form-row input:focus,
.form-row textarea:focus,
.form-group input:focus {
    transform: scale(1.02);
    box-shadow: 0 0 0 4px rgba(198, 138, 68, 0.2);
}

/* Button animation */
.contact-form-card .btn {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    animation: fadeInUp 0.8s ease-out 0.7s both;
}

.contact-form-card .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(139, 111, 71, 0.3);
    background-color: #6b4423;
}
@media (hover: hover) and (pointer: fine) {
  .contact-form-card .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(139, 111, 71, 0.3);
    background-color: #6b4423;
  }
}

.contact-form-card .btn:active {
    transform: translateY(0px);
}

/* Disable ripple visuals inside contact page (ripple spans may be created globally) */
.contact-section .btn .ripple {
    display: none !important;
}

/* Simple pressed feedback class used in JS (no ripple) */
.contact-form-card .btn.pressed {
    transform: translateY(0px) scale(0.995);
    opacity: 0.96;
    transition: transform 0.12s ease, opacity 0.12s ease;
}

/* Eyebrow text animation */
.eyebrow {
    animation: fadeInUp 0.8s ease-out 0.6s both;
}

.contact-form-card h2 {
    animation: fadeInUp 0.8s ease-out 0.7s both;
}

.contact-form-card > p {
    animation: fadeInUp 0.8s ease-out 0.75s both;
}