html,
body {
    height: 100%;
    margin: 0;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1 0 auto;
}

footer {
    flex-shrink: 0;
    border-top: 1px solid var(--border);
    background: #fff;
}

:root {
    --brand-gold: #c9a64d;
    --brand-dark: #1a1a1a;
    --border: #e7e7e9;
    --soft: #f7f7f9;
}

body {
    background: #fff;
    color: var(--brand-dark);
}

.container-xl {
    max-width: 1200px;
}

.rounded-2xl {
    border-radius: 10px;
}

.shadow-soft {
    box-shadow: 0 10px 28px rgba(0, 0, 0, .06);
}

/* ===== TOP BAR ===== */
.topbar {
    background: #fff;
    border-bottom: 3px solid #EF7800;
}

.brand img {
    height: 38px;
    width: auto;
}

/* ===== HERO ===== */
.hero .card-hero {
    border: 1px solid var(--border);
    background: #fff;
}

.badge-soft {
    background: rgba(201, 166, 77, .14);
    border: 1px solid rgba(201, 166, 77, .3);
    color: #7a5c16;
}

.hero-illus {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: 14px;
}

/* ===== FORM CARD ===== */
.form-card {
    border: 1px solid var(--border);
    background: #fff;
}

.form-label {
    color: #333;
    font-weight: 600;
}

.form-control,
.form-select {
    border: 1px solid var(--border);
}

.form-control:focus,
.form-select:focus {
    border-color: var(--brand-gold);
    box-shadow: 0 0 0 .2rem rgba(201, 166, 77, .25);
}

.required::after {
    content: " *";
    color: #dc3545;
}

textarea.form-control {
    resize: vertical;
    min-height: 80px;
}

/* ===== CTA BUTTON ===== */
.btn-gold {
    background: #022156 !important;
    border-color: #022156;
    color: #fff !important;
    font-weight: 600;
    transition: all .25s ease-in-out;
}

.btn-gold:hover,
.btn-gold:focus {
    transform: translateY(-1px);
}

.btn-gold:active {
    transform: translateY(0);
}

/* ===== LINK FIX ===== */
a,
a:visited,
a:hover,
a:active,
a:focus {
    color: #7e7e7e !important;
    text-decoration: none;
    transition: all .3s ease-in-out;
}

a:hover {
    padding-left: 5px;
}

body {
    background: #fff;
    color: #1a1a1a;
}

.container-xl {
    max-width: 1200px;
}

.rounded-2xl {
    border-radius: 20px;
}

.shadow-soft {
    box-shadow: 0 10px 28px rgba(0, 0, 0, .06);
}

.btn-gold {
    background: #022156;
    border: none;
    color: #111;
    font-weight: 600;
}

.thankyou-box {
    max-width: 700px;
    text-align: center;
    border: 1px solid #e7e7e9;
    border-radius: 20px;
    padding: 40px 30px;
    box-shadow: 0 10px 28px rgba(0, 0, 0, .06);
    margin: 80px auto;
}

.thankyou-box .check {
    font-size: 48px;
    color: #c9a64d;
    margin-bottom: 20px;
}

.btn-gold.btn-sm {
    padding: 6px 16px;
    font-size: 0.9rem;
    color: #ffffff !important;
}

.btn-gold.btn-sm i {
    font-size: 0.85rem;
}

.btn-gold:hover {
    background: #02183e;
    color: #111;
}

.btn-gold:active {
    background: #02183e !important;
    transform: translateY(1px) !important;
    box-shadow: 0 3px 6px rgba(0, 0, 0, .25) inset !important;
}

#result {
    border: 0;
    padding: 10px;
    position: fixed;
    color: white;
    background-color: #BC3C49;
    width: 100%;
    display: none;
    text-align: left;
    z-index: 99999;
    top: 0;
}

#result ul {
    margin-left: 10px;
    font-size: 11pt;
    list-style: none;
    float: left;
    width: 100%;
}

#result ul:before {
    font-family: "Font Awesome 6 Free";
    content: "\f071";
    float: left;
    margin-right: 10px;
}

#result {
    margin: 0;
}

label.error {
    display: block;
    margin-top: 4px;
    font-size: 0.85rem;
    color: #dc3545;
    font-style: italic;
}

.input-group+label.error,
textarea+label.error,
select+label.error {
    margin-left: 42px;
}

input.error,
textarea.error,
select.error {
    border: 1px solid red;
}

.input-group-addon {
    background-color: #eee;
    color: #555;
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 6px 12px;
    font-weight: 400;
}

.hero {
    background: #022156;
}

section.form-section {
    background: #fdfcf7;
}

.form-card {
    border: 1px solid #ededed;
    background: #ededed;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
}

.form-label {
    font-weight: 600;
    color: #7a5c16;
}

h5.fw-bold {
    color: #c9a64d;
}

.form-control:focus,
.form-select:focus {
    border-color: #c9a64d;
    box-shadow: 0 0 0 .2rem rgba(201, 166, 77, .15);
}

footer {
    background: #EF7800;
}

::placeholder {
    color: #b0b0b0 !important;
    opacity: 1 !important;
}

@media (max-width: 767.98px) {
    .brand-wrapper {
        flex: 1;
        text-align: center;
    }

    #eventroom,
    #eventguest,
    #eventmeal,
    #eventdescription {
        min-height: 110px;
    }

    #eventmeal,
    #eventdescription {
        min-height: 160px;
    }

    #eventdescription {
        min-height: 135px;
    }
}

.carousel-fade .carousel-item {
    transition: opacity 1s ease-in-out;
}

.hero-illus {
    width: 100%;
    height: 325px; /* atur sesuai kebutuhan */
    object-fit: cover; /* gambar tetap proporsional, crop kalau perlu */
}

@media (max-width: 768px) {
    .hero-illus {
        height: 220px; /* lebih pendek di mobile */
    }
}