
:root {
    --bahtera-red: #D12424;
    --bahtera-red-dark: #A91E1E;
    --bahtera-gold: #F2BE00;
    --bahtera-gold-dark: #B58D00;
    --bahtera-ink: #292725;
    --bahtera-muted: #706D69;
    --bahtera-surface: #FFFFFF;
    --bahtera-background: #FAF9F6;
    --bahtera-border: #E8E4DE;
    --bahtera-radius: 18px;
    --bahtera-shadow: 0 12px 36px rgba(41, 39, 37, 0.07);
}

/* Gateway and form page foundations */

.bahtera-service-gateway,
.bahtera-service-form-page {
    color: var(--bahtera-ink);
    background: var(--bahtera-background);
    font-family: 'Poppins', sans-serif;
}

.bahtera-service-gateway *,
.bahtera-service-form-page * {
    box-sizing: border-box;
}

.bahtera-service-hero,
.bahtera-service-form-hero {
    padding: 76px 0 58px;
    background: var(--bahtera-surface);
    border-bottom: 1px solid var(--bahtera-border);
}

.bahtera-service-hero {
    text-align: center;
}

.bahtera-service-eyebrow,
.bahtera-service-kicker {
    display: inline-block;
    color: var(--bahtera-red);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    line-height: 1.8;
}

.bahtera-service-heading {
    max-width: 800px;
    margin: 18px auto;
    color: var(--bahtera-ink);
    font-size: clamp(30px, 4.4vw, 48px);
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -1px;
}

.bahtera-service-heading span {
    display: block;
    color: var(--bahtera-red);
}

.bahtera-service-intro {
    max-width: 620px;
    margin: 0 auto;
    color: var(--bahtera-muted);
    font-size: 15px;
    line-height: 1.9;
}

.bahtera-service-selection {
    padding: 64px 0 76px;
}

.bahtera-service-section-heading {
    margin-bottom: 34px;
    text-align: center;
}

.bahtera-service-section-heading h2 {
    margin: 12px 0;
    color: var(--bahtera-ink);
    font-size: clamp(24px, 3vw, 32px);
    font-weight: 700;
}

.bahtera-service-section-heading p {
    margin: 0;
    color: var(--bahtera-muted);
    line-height: 1.8;
}

/* Service selection cards */

.bahtera-service-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 300px;
    padding: 30px;
    overflow-wrap: anywhere;
    color: var(--bahtera-ink);
    text-decoration: none !important;
    background: var(--bahtera-surface);
    border: 1px solid var(--bahtera-border);
    border-top: 4px solid var(--bahtera-red);
    border-radius: var(--bahtera-radius);
    box-shadow: var(--bahtera-shadow);
    transition: transform 180ms ease, box-shadow 180ms ease,
        border-color 180ms ease;
}

.bahtera-service-card--layanan {
    border-top-color: var(--bahtera-gold);
}

.bahtera-service-card:hover {
    color: var(--bahtera-ink);
    transform: translateY(-4px);
    box-shadow: 0 18px 44px rgba(41, 39, 37, 0.12);
}

.bahtera-service-card:focus-visible {
    outline: 3px solid var(--bahtera-gold-dark);
    outline-offset: 4px;
}

.bahtera-service-card__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 26px;
}

.bahtera-service-card__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    color: var(--bahtera-red);
    background: #FFF0F0;
    border-radius: 16px;
    font-size: 25px;
}

.bahtera-service-card--layanan
.bahtera-service-card__icon {
    color: var(--bahtera-gold-dark);
    background: #FFF8D9;
}

.bahtera-service-card__number {
    color: #B9B3AC;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1px;
}

.bahtera-service-card__title {
    margin: 0 0 12px;
    color: var(--bahtera-ink);
    font-size: 25px;
    font-weight: 700;
}

.bahtera-service-card__description {
    flex: 1;
    margin-bottom: 26px;
    color: var(--bahtera-muted);
    font-size: 14px;
    line-height: 1.9;
}

.bahtera-service-card__action {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-top: 18px;
    color: var(--bahtera-red);
    border-top: 1px solid var(--bahtera-border);
    font-size: 13px;
    font-weight: 700;
}

.bahtera-service-card--layanan
.bahtera-service-card__action {
    color: var(--bahtera-gold-dark);
}

.bahtera-service-help {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    max-width: 820px;
    margin: 24px auto 0;
    padding: 20px 22px;
    color: var(--bahtera-muted);
    background: #FFF8D9;
    border: 1px solid #F3E5A7;
    border-radius: 12px;
}

.bahtera-service-help > i {
    margin-top: 4px;
    color: var(--bahtera-gold-dark);
    font-size: 20px;
}

.bahtera-service-help p {
    margin: 0;
    font-size: 13px;
    line-height: 1.8;
}

/* Breadcrumb */

.bahtera-service-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 32px;
    padding: 0;
    list-style: none;
    color: var(--bahtera-muted);
    font-size: 12px;
}

.bahtera-service-breadcrumb li + li::before {
    content: "/";
    margin-right: 8px;
    color: #AAA39B;
}

.bahtera-service-breadcrumb a {
    color: var(--bahtera-red);
    text-decoration: none;
}

.bahtera-service-breadcrumb a:hover {
    text-decoration: underline;
}

/* Form layout */

.bahtera-service-form-section {
    padding: 52px 0 76px;
}

.bahtera-service-form-card {
    padding: clamp(22px, 4vw, 42px);
    background: var(--bahtera-surface);
    border: 1px solid var(--bahtera-border);
    border-radius: var(--bahtera-radius);
    box-shadow: var(--bahtera-shadow);
}

.bahtera-service-notice {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 32px;
    padding: 18px;
    color: #6E5600;
    background: #FFF8D9;
    border: 1px solid #F0E0A0;
    border-radius: 12px;
}

.bahtera-service-notice > i {
    margin-top: 3px;
    font-size: 20px;
}

.bahtera-service-notice strong {
    display: block;
    margin-bottom: 6px;
    font-size: 14px;
}

.bahtera-service-notice p {
    margin: 0;
    font-size: 12px;
    line-height: 1.8;
}

.bahtera-service-form-heading {
    margin-bottom: 30px;
}

.bahtera-service-form-heading h2 {
    margin-bottom: 8px;
    color: var(--bahtera-ink);
    font-size: 24px;
    font-weight: 700;
}

.bahtera-service-form-heading p {
    margin: 0;
    color: var(--bahtera-muted);
    font-size: 13px;
    line-height: 1.8;
}

.bahtera-required {
    color: var(--bahtera-red);
}

.bahtera-optional {
    color: var(--bahtera-muted);
    font-size: 12px;
    font-weight: 400;
}

.bahtera-service-form__field {
    margin-bottom: 24px;
}

.bahtera-service-form__field label {
    display: block;
    margin-bottom: 9px;
    color: var(--bahtera-ink);
    font-size: 13px;
    font-weight: 600;
}

.bahtera-service-form__field .form-control {
    width: 100%;
    min-height: 49px;
    padding: 12px 14px;
    color: var(--bahtera-ink);
    background: #FFFFFF;
    border: 1px solid #D9D4CD;
    border-radius: 9px;
    font-family: inherit;
    font-size: 13px;
    box-shadow: none;
}

.bahtera-service-form__field textarea.form-control {
    min-height: 125px;
    resize: vertical;
}

.bahtera-service-form__field .form-control:focus {
    border-color: var(--bahtera-red);
    outline: 2px solid rgba(209, 36, 36, 0.12);
    outline-offset: 1px;
    box-shadow: none;
}

.bahtera-service-form__field .form-control:disabled {
    color: #77716A;
    background: #F2F0EC;
    cursor: not-allowed;
}

.bahtera-service-form__field small {
    display: block;
    margin-top: 8px;
    color: var(--bahtera-muted);
    font-size: 11px;
    line-height: 1.7;
}

.bahtera-service-form__field-footer {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.bahtera-service-form__counter {
    flex-shrink: 0;
    margin-top: 8px;
    color: var(--bahtera-muted);
    font-size: 12px;
    font-variant-numeric: tabular-nums;
}

.bahtera-service-form__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 12px;
    margin-top: 34px;
}

.bahtera-service-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 48px;
    padding: 12px 20px;
    border: 1px solid transparent;
    border-radius: 9px;
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    text-align: center;
    text-decoration: none !important;
    cursor: pointer;
    transition: background 180ms ease, color 180ms ease;
}

.bahtera-service-button--primary {
    color: #FFFFFF;
    background: var(--bahtera-red);
    border-color: var(--bahtera-red);
}

.bahtera-service-button--primary:hover {
    color: #FFFFFF;
    background: var(--bahtera-red-dark);
}

.bahtera-service-button--secondary {
    color: var(--bahtera-ink);
    background: #FFFFFF;
    border-color: var(--bahtera-border);
}

.bahtera-service-button--secondary:hover {
    color: var(--bahtera-red);
    border-color: var(--bahtera-red);
}

.bahtera-service-button:focus-visible {
    outline: 3px solid var(--bahtera-gold-dark);
    outline-offset: 3px;
}

.bahtera-service-form__disclaimer {
    margin: 18px 0 0;
    color: var(--bahtera-muted);
    font-size: 11px;
    line-height: 1.8;
    text-align: center;
}

.bahtera-service-form__error {
    display: block;
    margin-top: 8px;
    color: #A91E1E;
    font-size: 12px;
    line-height: 1.7;
}


/* ==========================================
   LAYANAN HERO — CENTERED + SUBTLE 3D
   ========================================== */

.bahtera-service-form-hero--enhanced {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: 45px 0 76px;
    background:
        radial-gradient(
            ellipse at 50% 25%,
            rgba(242, 190, 0, 0.13) 0%,
            transparent 48%
        ),
        linear-gradient(
            145deg,
            #fffdf8 0%,
            #ffffff 54%,
            #fff8f1 100%
        );
}

.bahtera-service-form-hero--enhanced .container {
    position: relative;
    z-index: 2;
}

.bahtera-service-hero__visual {
    position: absolute;
    z-index: 0;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

#bahtera-service-hero-canvas {
    display: block;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 700ms ease;
}

.bahtera-service-hero--enhanced.is-3d-ready
#bahtera-service-hero-canvas {
    opacity: 1;
}

.bahtera-service-hero__center {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 900px;
    margin: 35px auto 0;
}

.bahtera-service-form-hero--enhanced .bahtera-service-kicker {
    display: inline-block;
    margin-bottom: 14px;
    color: #b21f24;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 2.4px;
    line-height: 1.6;
}

.bahtera-service-form-hero--enhanced .bahtera-service-heading {
    width: 100%;
    margin: 0 0 18px;
    color: #292323;
    font-size: clamp(32px, 4.2vw, 54px);
    font-weight: 800;
    line-height: 1.16;
    letter-spacing: -1.2px;
    text-align: center;
    text-wrap: balance;
}

.bahtera-service-form-hero--enhanced .bahtera-service-intro {
    max-width: 690px;
    margin: 0 auto;
    color: #655d5d;
    font-size: clamp(15px, 1.5vw, 18px);
    line-height: 1.85;
    text-align: center;
    text-wrap: pretty;
}


.bahtera-service-hero__logo {
    display: flex;
    justify-content: center;
    align-items: center;
    width: min(100%, 440px);
    margin: 27px auto 0;
    padding: 0;
    /* Remove the white card appearance */
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
    /* Remove glass effect */
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.bahtera-service-hero__logo img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

.bahtera-service-hero__note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 23px;
    color: #655d5d;
    font-size: 13px;
    line-height: 1.6;
}

.bahtera-service-hero__note-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 30px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    color: #b21f24;
    background: rgba(209, 36, 36, 0.08);
}

/* Keep breadcrumb links readable above the visual layer. */
.bahtera-service-form-hero--enhanced .bahtera-service-breadcrumb {
    position: relative;
    z-index: 3;
}

/* Keyboard focus visibility */
.bahtera-service-form-hero--enhanced a:focus-visible {
    outline: 3px solid #b88600;
    outline-offset: 4px;
    border-radius: 3px;
}

/* Responsive layout */
@media (max-width: 767px) {
    .bahtera-service-form-hero--enhanced {
        padding: 28px 0 48px;
    }

    .bahtera-service-hero__center {
        margin-top: 26px;
    }

    .bahtera-service-form-hero--enhanced .bahtera-service-heading {
        margin-bottom: 14px;
        letter-spacing: -0.6px;
    }

    .bahtera-service-form-hero--enhanced .bahtera-service-intro {
        max-width: 540px;
        line-height: 1.75;
    }

    .bahtera-service-hero__logo {
        width: min(100%, 340px);
        margin-top: 23px;
        padding: 12px 16px;
        border-radius: 16px;
    }

    .bahtera-service-hero__note {
        font-size: 12px;
    }
}

/* Responsive and motion preferences */

@media (max-width: 767px) {
    .bahtera-service-hero,
    .bahtera-service-form-hero {
        padding: 44px 0 38px;
    }

    .bahtera-service-selection {
        padding: 42px 0 48px;
    }

    .bahtera-service-card {
        min-height: 260px;
        padding: 24px;
    }

    .bahtera-service-form-section {
        padding: 28px 0 46px;
    }

    .bahtera-service-form-card {
        padding: 22px 18px;
    }

    .bahtera-service-form__actions {
        flex-direction: column-reverse;
    }

    .bahtera-service-button {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .bahtera-service-card,
    .bahtera-service-button {
        transition: none;
    }

    .bahtera-service-card:hover {
        transform: none;
    }

    #bahtera-service-hero-canvas {
        transition: none;
    }
}
