:root {
    --bas-red: #e42734;
    --bas-red-dark: #93121c;
    --bas-maroon: #872018;
    --bas-gold: #fbb710;
    --bas-bg: #f3f5f8;
    --bas-white: #ffffff;
    --bas-text: #474747;
    --bas-text-muted: #9b9b9b;
    --bas-border: #dddee9;
    --bas-shadow: 0 4px 24px rgba(228, 39, 52, 0.08);
    --bas-radius: 12px;
    --font-main: "Inter", "Segoe UI", system-ui, sans-serif;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: var(--font-main);
    background: var(--bas-bg);
    color: var(--bas-text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
}

/* ── Header ── */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--bas-white);
    border-bottom: 1px solid var(--bas-border);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.header-inner {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0.75rem 1.5rem;
    display: flex;
    align-items: center;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-link img {
    height: 52px;
    width: auto;
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.logo-text strong {
    font-size: 0.95rem;
    color: var(--bas-maroon);
    font-weight: 700;
}

.logo-text span {
    font-size: 0.72rem;
    color: var(--bas-text-muted);
    font-weight: 500;
}

/* ── Hero ── */
.hero {
    background: linear-gradient(135deg, var(--bas-maroon) 0%, var(--bas-red) 55%, var(--bas-red-dark) 100%);
    color: var(--bas-white);
    padding: 3rem 1.5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 80% 20%, rgba(251, 183, 16, 0.16) 0%, transparent 50%);
    pointer-events: none;
}

.hero-inner {
    max-width: 720px;
    margin: 0 auto;
    position: relative;
}

.hero-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.35);
    color: var(--bas-white);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    margin-bottom: 1rem;
}

.hero h1 {
    margin: 0 0 0.75rem;
    font-size: clamp(1.75rem, 4vw, 2.25rem);
    font-weight: 700;
    line-height: 1.25;
}

.hero p {
    margin: 0;
    font-size: 1rem;
    opacity: 0.92;
    max-width: 540px;
    margin-inline: auto;
}

/* ── Form Section ── */
.form-section {
    max-width: 720px;
    margin: -2rem auto 3rem;
    padding: 0 1.5rem;
    position: relative;
    z-index: 1;
}

.form-card {
    background: var(--bas-white);
    border-radius: var(--bas-radius);
    box-shadow: var(--bas-shadow);
    border: 1px solid rgba(228, 39, 52, 0.08);
    overflow: hidden;
}

.form-card-header {
    background: linear-gradient(to right, var(--bas-red), var(--bas-red-dark));
    color: var(--bas-white);
    padding: 1.25rem 1.75rem;
    border-bottom: 3px solid var(--bas-red-dark);
}

.form-card-header h2 {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 600;
}

.form-card-header p {
    margin: 0.25rem 0 0;
    font-size: 0.85rem;
    opacity: 0.9;
}

#form-lamaran {
    padding: 1.75rem;
}

.form-group-section {
    margin-bottom: 1.75rem;
}

.form-group-section:last-of-type {
    margin-bottom: 0;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--bas-maroon);
    margin: 0 0 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--bas-red);
}

.section-title::before {
    content: "";
    display: inline-block;
    width: 4px;
    height: 1em;
    background: var(--bas-red);
    border-radius: 2px;
}

.form-field {
    margin-bottom: 1.1rem;
}

.form-field:last-child {
    margin-bottom: 0;
}

.form-field label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--bas-text);
    margin-bottom: 0.4rem;
}

.form-field label .optional {
    font-weight: 400;
    color: var(--bas-text-muted);
    font-size: 0.8rem;
}

.form-field input[type="text"],
.form-field input[type="tel"] {
    width: 100%;
    padding: 0.65rem 0.85rem;
    font-size: 0.925rem;
    font-family: inherit;
    border: 1px solid var(--bas-border);
    border-left: 3px solid var(--bas-border);
    border-radius: 0;
    background: var(--bas-bg);
    color: var(--bas-text);
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.form-field input[type="text"]:focus,
.form-field input[type="tel"]:focus {
    outline: none;
    background: var(--bas-white);
    border-color: var(--bas-red);
    border-left-color: var(--bas-red);
    box-shadow: 0 0 0 3px rgba(228, 39, 52, 0.12);
}

.file-upload {
    position: relative;
}

.file-upload input[type="file"] {
    width: 100%;
    padding: 0.65rem 0.85rem;
    font-size: 0.875rem;
    font-family: inherit;
    border: 1px dashed var(--bas-border);
    border-radius: 8px;
    background: var(--bas-bg);
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
}

.file-upload input[type="file"]:hover {
    border-color: var(--bas-red);
    background: #fff5f5;
}

.file-upload input[type="file"]:focus {
    outline: none;
    border-color: var(--bas-red);
    box-shadow: 0 0 0 3px rgba(228, 39, 52, 0.12);
}

.form-note {
    font-size: 0.8rem;
    color: var(--bas-text-muted);
    margin-top: 0.75rem;
    padding: 0.65rem 0.85rem;
    background: var(--bas-bg);
    border-radius: 8px;
    border-left: 3px solid var(--bas-red);
}

.form-actions {
    margin-top: 1.75rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--bas-border);
}

.btn-submit {
    width: 100%;
    padding: 0.85rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    font-family: inherit;
    color: var(--bas-white);
    background: var(--bas-red);
    border: none;
    border-left: 3px solid var(--bas-red-dark);
    border-radius: 0;
    cursor: pointer;
    transition: background 0.2s, box-shadow 0.2s, transform 0.15s;
    box-shadow: 0 4px 14px rgba(228, 39, 52, 0.28);
}

.btn-submit:hover {
    background: var(--bas-red-dark);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(147, 18, 28, 0.32);
}

.btn-submit:active {
    transform: translateY(0);
}

/* ── Trust Badges ── */
.trust-badges {
    max-width: 720px;
    margin: 0 auto 2.5rem;
    padding: 0 1.5rem;
}

.trust-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    padding: 1.25rem 1.5rem;
    background: var(--bas-white);
    border-radius: var(--bas-radius);
    box-shadow: var(--bas-shadow);
    border: 1px solid rgba(228, 39, 52, 0.08);
}

.trust-inner p {
    margin: 0;
    font-size: 0.8rem;
    color: var(--bas-text-muted);
    text-align: center;
    flex: 1 1 200px;
}

.trust-inner a {
    color: var(--bas-red);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.trust-logos {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.trust-logos img {
    height: 40px;
    width: auto;
    opacity: 0.85;
    transition: opacity 0.2s;
}

.trust-logos a:hover img {
    opacity: 1;
}

/* ── Footer ── */
.site-footer {
    background: var(--bas-white);
    color: var(--bas-text);
    padding: 2.5rem 1.5rem 1.5rem;
    border-top: 1px solid #ebebeb;
}

.footer-inner {
    max-width: 1140px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
}

.footer-col h4 {
    margin: 0 0 0.75rem;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--bas-maroon);
}

.footer-col p,
.footer-col li {
    margin: 0 0 0.4rem;
    font-size: 0.85rem;
    line-height: 1.6;
    color: #4b4b4b;
}

.footer-col ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-col a {
    color: #4b4b4b;
    transition: color 0.2s;
}

.footer-col a:hover {
    color: var(--bas-red);
}

.footer-bottom {
    max-width: 1140px;
    margin: 2rem auto 0;
    padding-top: 1.25rem;
    border-top: 1px solid #ebebeb;
    text-align: center;
    font-size: 0.8rem;
    color: var(--bas-text-muted);
}

/* ── Responsive ── */
@media (max-width: 768px) {
    .logo-text {
        display: none;
    }

    .hero {
        padding: 2.25rem 1.25rem;
    }

    #form-lamaran {
        padding: 1.25rem;
    }

    .trust-inner {
        flex-direction: column;
        text-align: center;
    }
}
