/* Contact Us Page - Inheriting Index Design System */

/* Hero Section */
.contact-hero {
    background: linear-gradient(135deg, #f6fbf5 0%, #f0f6ef 60%, #ffffff 100%);
    padding: clamp(60px, 8vw, 90px) 0 clamp(40px, 6vw, 60px);
    text-align: center;
}

.contact-shell {
    width: 100%;
    overflow-x: hidden;
}

.hero-content-centered {
    max-width: 820px;
    margin: 0 auto;
}

.hero-content-centered h1 {
    font-size: clamp(32px, 4.2vw, 44px);
    line-height: 1.2;
    margin: 12px 0 16px;
    color: var(--herb-900);
}

.hero-content-centered .hero-lede {
    font-size: clamp(16px, 2vw, 18px);
    color: #4b5c49;
    line-height: 1.65;
    max-width: 720px;
    margin: 0 auto;
}

/* Contact Information Cards */
.contact-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
    width: 100%;
    max-width: 980px;
    margin: 0 auto;
}

.contact-card {
    background: linear-gradient(180deg, #ffffff 0%, #fbfdfb 100%);
    border: 1px solid #e4eee1;
    border-radius: 20px;
    padding: 22px 22px 24px;
    text-align: left;
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    position: relative;
    overflow: hidden;
    min-width: 0;
    display: grid;
    grid-template-columns: 52px 1fr;
    gap: 10px 16px;
    align-items: start;
    min-height: 180px;
}

.contact-card::before {
    display: none;
}

.contact-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.1);
    border-color: #cfe2c9;
}

.contact-icon {
    width: 52px;
    height: 52px;
    margin: 0;
    display: grid;
    place-items: center;
    border-radius: 16px;
    background: #edf6ea;
    color: var(--herb-700);
    grid-row: 1 / -1;
    align-self: start;
}

.contact-icon .icon {
    font-size: 32px;
}

.contact-card h3 {
    font-size: clamp(18px, 2.2vw, 20px);
    margin: 2px 0 0;
    color: var(--herb-900);
    grid-column: 2;
}

.contact-card p {
    color: #5a6a57;
    font-size: 14px;
    margin: 6px 0 0;
    grid-column: 2;
    line-height: 1.6;
}

.contact-value {
    font-size: 16px;
    font-weight: 700;
    color: #1f3325;
}

.contact-link {
    display: inline-block;
    color: var(--herb-700);
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s ease;
    word-break: break-word;
    margin-top: 10px;
    font-size: 16px;
    grid-column: 2;
}

.contact-link:hover {
    color: var(--herb-500);
}

.contact-link--pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 14px;
    border-radius: 999px;
    background: #e7f1e4;
    color: #2f4f34;
    font-weight: 700;
    border: 1px solid #d6e6d2;
}

.contact-link--pill:hover {
    background: #dfeedd;
    color: #1f3325;
}

.contact-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 14px;
    border-radius: 999px;
    background: #eef6ea;
    color: #1f3325;
    font-weight: 700;
    border: 1px solid #d7e7d3;
    width: fit-content;
}

.contact-pill:hover {
    background: #e2f2dd;
    color: #142219;
}

@media (max-width: 720px) {
    .contact-cards {
        grid-template-columns: 1fr;
    }

    .contact-card {
        min-height: 0;
    }
}

.contact-address {
    font-style: normal;
    color: #4b5c49;
    line-height: 1.6;
    word-break: break-word;
}

.contact-hours {
    color: #4b5c49;
    line-height: 1.7;
    word-break: break-word;
    margin-top: 8px;
    grid-column: 2;
}

.contact-hours strong {
    color: var(--herb-900);
}

/* Contact Form Section */
.contact-form-section {
    background: radial-gradient(circle at 20% 20%, #f5fbf5 0%, #ffffff 55%, #f7fbf7 100%);
}

.form-container {
    max-width: 780px;
    margin: 0 auto;
}

.form-header {
    text-align: center;
    margin-bottom: 32px;
}

.form-header h2 {
    font-size: clamp(28px, 3.6vw, 36px);
    margin: 10px 0 14px;
    color: var(--herb-900);
}

.contact-form {
    background: #fff;
    border: 1px solid var(--border-soft);
    border-radius: 18px;
    padding: clamp(28px, 4vw, 40px);
    box-shadow: 0 18px 38px rgba(0, 0, 0, 0.08);
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--herb-900);
    font-weight: 600;
    font-size: 14px;
}

.required {
    color: #d62828;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d6e6d2;
    border-radius: 10px;
    font-family: 'Poppins', sans-serif;
    font-size: 15px;
    color: var(--herb-900);
    background: #fafbfa;
    transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--herb-500);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(58, 90, 64, 0.08);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232f4f34' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 20px;
    padding-right: 40px;
}

.form-actions {
    margin-top: 24px;
}

.form-actions .cta-button {
    width: 100%;
    justify-content: center;
}

.form-note {
    margin-top: 16px;
    font-size: 13px;
    color: #5f6b5a;
    text-align: center;
    line-height: 1.5;
}

.form-note .soft-link {
    color: var(--herb-700);
    text-decoration: underline;
}

/* Quick Help Cards */
.help-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
}

.help-card {
    background: #fff;
    border: 1px solid var(--border-soft);
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.05);
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.help-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.08);
    border-color: #c9dcc5;
}

.help-icon {
    width: 56px;
    height: 56px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: #e7f1e4;
    color: var(--herb-700);
    margin-bottom: 14px;
}

.help-icon .icon {
    font-size: 28px;
}

.help-card h3 {
    font-size: clamp(17px, 2vw, 19px);
    margin: 10px 0 8px;
    color: var(--herb-900);
}

.help-card p {
    color: #5f6b5a;
    line-height: 1.6;
    margin-bottom: 12px;
}

.help-card .soft-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-weight: 600;
}

/* Map Section */
.map-container {
    border: 1px solid var(--border-soft);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 18px 38px rgba(0, 0, 0, 0.08);
    background: #fff;
}

.map-placeholder {
    height: 400px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    background: linear-gradient(135deg, rgba(246, 251, 245, 0.92) 0%, rgba(240, 246, 239, 0.92) 60%, rgba(255, 255, 255, 0.92) 100%),
        url('/images/bg2.webp');
    background-size: cover;
    background-position: center;
    color: var(--herb-700);
    padding: 24px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.map-placeholder::before,
.map-placeholder::after {
    content: '';
    position: absolute;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(231, 241, 228, 0.7) 0%, rgba(231, 241, 228, 0) 70%);
    filter: blur(2px);
}

.map-placeholder::before {
    top: -40px;
    left: -40px;
}

.map-placeholder::after {
    bottom: -50px;
    right: -30px;
}

.map-card {
    position: relative;
    z-index: 1;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid var(--border-soft);
    border-radius: 18px;
    padding: 20px 24px;
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.08);
    max-width: 360px;
    width: 100%;
    display: grid;
    gap: 10px;
    justify-items: center;
}

.map-card .material-symbols-rounded {
    font-size: 56px;
}

.map-card p {
    color: #4b5c49;
    text-align: center;
    line-height: 1.6;
    font-weight: 500;
}

.map-action {
    min-width: 0;
    padding: 10px 18px;
}

.map-container iframe {
    width: 100%;
    height: 400px;
    border: none;
    display: block;
}

/* Responsive Design */
@media (max-width: 760px) {
    .contact-cards {
        max-width: 100%;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .help-cards {
        grid-template-columns: 1fr;
    }

    .map-placeholder {
        height: 300px;
    }

    .map-container iframe {
        height: 300px;
    }
}

@media (max-width: 540px) {
    .hero-content-centered h1 {
        font-size: 28px;
    }

    .contact-card {
        grid-template-columns: 48px 1fr;
        padding: 18px;
    }

    .contact-icon {
        width: 48px;
        height: 48px;
    }

    .contact-form {
        padding: 24px 18px;
    }

    .form-row {
        gap: 16px;
        margin-bottom: 16px;
    }
}

/* Form Success/Error Messages */
.form-message {
    padding: 14px 18px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-size: 14px;
    font-weight: 500;
    display: none;
}

.form-message.success {
    background: #e7f1e4;
    color: var(--herb-700);
    border: 1px solid #c9dcc5;
    display: block;
}

.form-message.error {
    background: #fce8e8;
    color: #d62828;
    border: 1px solid #f5c6c6;
    display: block;
}

/* ---------------- New Layout (alignment rebuild) ---------------- */
.contact-main {
    padding-top: clamp(28px, 5vw, 56px);
}

.contact-main-wrap {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 460px);
    gap: clamp(22px, 4vw, 48px);
    align-items: start;
}

.contact-main-info h2 {
    font-size: clamp(36px, 5vw, 64px);
    line-height: 1.04;
    margin: 10px 0 14px;
    color: var(--herb-900);
}

.contact-main-info .section-subtitle {
    max-width: 620px;
    margin-bottom: 22px;
}

.contact-list {
    display: grid;
    gap: 12px;
    max-width: 620px;
}

.contact-row {
    display: grid;
    grid-template-columns: 44px 1fr;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: #4f5f4b;
    background: #fff;
    border: 1px solid #e2ece0;
    border-radius: 12px;
    padding: 10px 12px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.contact-row:hover {
    border-color: #c8ddc3;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    transform: translateY(-1px);
}

.contact-row--static:hover {
    transform: none;
}

.contact-row-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    font-size: 22px;
    background: #e8f1e6;
    color: #2f4f34;
}

.contact-row-text {
    font-size: clamp(15px, 2vw, 18px);
    font-weight: 600;
    color: #334a35;
    word-break: break-word;
}

.contact-main-form {
    background: #fff;
    border: 1px solid #dbe8d8;
    border-radius: 18px;
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.07);
    padding: clamp(18px, 3vw, 28px);
}

.contact-main-form .form-header {
    text-align: left;
    margin-bottom: 16px;
}

.contact-main-form .form-header h2 {
    margin: 0;
    font-size: clamp(30px, 3vw, 42px);
    line-height: 1.1;
}

.contact-main-form .contact-form {
    padding: 0;
    border: none;
    box-shadow: none;
    background: transparent;
}

.map-split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(18px, 3vw, 34px);
    align-items: center;
}

.map-visual {
    border: 1px solid #dbe8d8;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.07);
    min-height: 320px;
}

.map-visual iframe {
    width: 100%;
    height: 100%;
    min-height: 320px;
    border: 0;
    display: block;
}

.map-details h2 {
    margin: 10px 0 12px;
    font-size: clamp(30px, 3.8vw, 46px);
    line-height: 1.12;
    color: var(--herb-900);
}

.map-details .section-subtitle {
    margin-top: 0;
    margin-bottom: 18px;
}

.map-address {
    display: grid;
    grid-template-columns: 32px 1fr;
    gap: 10px;
    align-items: start;
    margin-bottom: 18px;
}

.map-address .material-symbols-rounded {
    font-size: 22px;
    color: var(--herb-700);
    margin-top: 2px;
}

.map-address strong {
    display: block;
    color: var(--herb-900);
    margin-bottom: 2px;
}

.map-address p {
    margin: 0;
    color: #5c6959;
}

@media (max-width: 1000px) {
    .contact-main-wrap {
        grid-template-columns: 1fr;
    }

    .contact-main-form {
        max-width: 760px;
    }

    .map-split {
        grid-template-columns: 1fr;
    }

    .map-visual {
        min-height: 280px;
    }

    .map-visual iframe {
        min-height: 280px;
    }
}

@media (max-width: 640px) {
    .contact-main-info h2 {
        font-size: clamp(34px, 11vw, 46px);
    }

    .contact-row {
        grid-template-columns: 40px 1fr;
        padding: 10px;
    }

    .contact-row-icon {
        width: 36px;
        height: 36px;
        font-size: 20px;
    }

    .contact-row-text {
        font-size: 15px;
    }

    .map-details h2 {
        font-size: clamp(30px, 9vw, 40px);
    }

    .map-visual {
        min-height: 240px;
    }

    .map-visual iframe {
        min-height: 240px;
    }
}
