/* ===================== LOADING ===================== */
.loading {
    position: fixed;
    z-index: 9999;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.loading:before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.65);
    -webkit-backdrop-filter: blur(2px);
    backdrop-filter: blur(2px);
}

.loading:after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 54px;
    height: 54px;
    margin: -27px 0 0 -27px;
    border: 5px solid #d6e0f5;
    border-top-color: #1d4ed8;
    border-radius: 50%;
    animation: spinner 0.8s linear infinite;
}

@keyframes spinner {
    0%   { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ===================== GLOBAL ===================== */
body {
    background: #f3f3f3;
    font-family: Arial, Helvetica, sans-serif;
}

.container.container-narrow {
    max-width: 720px;
}

.header img {
    max-width: 340px;
    width: 100%;
    height: auto;
    border-radius: 6px;
}

.form-wrapper {
    max-width: 380px;
    margin: 0 auto 20px;
}

.form-box {
    background: #ffffff;
    border: 1px solid #d9d9d9;
    border-radius: 12px;
    padding: 18px 18px 20px;
    box-shadow: none;
}

/* ===================== FORM ===================== */
.photo-style-form .form-field {
    margin-bottom: 16px;
}

.photo-style-form .form-label-custom {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #222;
    margin-bottom: 7px;
}

.photo-style-form .form-label-custom i {
    color: #1d4ed8;
    margin-right: 4px;
}

.photo-style-form .label-required {
    color: #1d4ed8;
    font-weight: 600;
}

.photo-style-form .agree-box {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 2px;
    margin-bottom: 20px;
}

.photo-style-form .agree-box input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    accent-color: #1d4ed8;
    flex-shrink: 0;
}

.photo-style-form .agree-box label {
    font-size: 12px;
    line-height: 1.5;
    color: #222;
    margin: 0;
}

.photo-style-form .submit-wrap {
    text-align: center;
}

.photo-style-form .input-icon-group {
    display: flex;
    align-items: stretch;
    width: 100%;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.photo-style-form .input-icon-group:focus-within {
    border-color: #1d4ed8;
    box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.12);
}

.photo-style-form .input-icon-prefix {
    width: 50px;
    min-width: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #eef2ff;
    border-right: 1.5px solid #e2e8f0;
    color: #1d4ed8;
    font-size: 17px;
}

.photo-style-form .input-icon-prefix.prefix-telegram {
    color: #229ed9;
}

.photo-style-form .input-icon-field {
    flex: 1;
    width: 100%;
    border: 0;
    outline: none;
    height: 50px;
    padding: 0 14px;
    font-size: 14.5px;
    color: #1f2937;
    background: transparent;
}

.photo-style-form .input-icon-field::placeholder {
    color: #9aa3b2;
}

.photo-style-form .input-icon-select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23475569' stroke-width='2.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 14px center;
    background-size: 18px;
    padding-right: 40px;
    cursor: pointer;
}

.photo-style-form .input-icon-field:disabled {
    background: #f3f4f6;
    cursor: not-allowed;
    color: #9aa3b2;
}

.photo-style-form .section-label {
    font-size: 13.5px;
    font-weight: 700;
    color: #1d4ed8;
    margin: 4px 0 10px;
}

.photo-style-form .section-label i {
    margin-right: 4px;
}

.photo-style-form .btn-lanjut {
    width: 100%;
    height: 46px;
    border: 0;
    border-radius: 10px;
    background: #0a2e6e;
    color: #fff;
    font-size: 14.5px;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(10, 46, 110, 0.3);
    transition: 0.2s ease;
}

.photo-style-form .btn-lanjut:hover {
    background: #0c3a8a;
}

.photo-style-form .btn-lanjut:active {
    transform: translateY(1px);
}

.photo-style-form .form-footer-note {
    text-align: center;
    font-size: 13px;
    color: #6b7280;
    margin: 14px 0 0;
}

.photo-style-form .form-footer-note strong {
    color: #1d4ed8;
}

/* ===================== FORM TITLE ===================== */
.form-title {
    font-size: 17px;
    font-weight: 700;
    color: #1d4ed8;
    text-align: center;
    margin: 4px 0 14px;
}

.form-title-cursor {
    color: #1d4ed8;
    font-weight: 400;
    animation: blinkCursor 1s steps(2, start) infinite;
}

@keyframes blinkCursor {
    to { visibility: hidden; }
}

/* ===================== BOX PERSYARATAN ===================== */
.syarat-box {
    max-width: 480px;
    margin: 10px auto 20px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-left: 5px solid #1d4ed8;
    border-radius: 12px;
    padding: 18px 20px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
    text-align: left;
}

.syarat-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 700;
    color: #1d4ed8;
    margin-bottom: 14px;
}

.syarat-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.syarat-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13.5px;
    line-height: 1.5;
    color: #374151 !important;
    margin-bottom: 12px;
}

.syarat-list li i {
    color: #22c55e !important;
    font-size: 16px;
    flex-shrink: 0;
    margin-top: 1px;
}

.syarat-footer {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 700;
    color: #1d4ed8;
    margin-top: 6px;
    padding-top: 12px;
    border-top: 1px solid #eef2f7;
}

/* ===================== PESAN ERROR ===================== */
.field-error {
    display: none;
    color: #e03131;
    font-weight: 700;
    font-size: 13px;
    margin: 0 0 6px;
}

.field-error.show {
    display: block;
}

#errOtp,
#errPassword {
    margin: 8px 0 12px;
}

/* ===================== OTP / STEP 2 ===================== */
.otp-desc {
    text-align: center;
    font-size: 14px;
    line-height: 1.6;
    color: #374151;
    margin: 0 0 18px;
}

.otp-desc strong {
    color: #1d4ed8;
}

.photo-style-form .otp-prefix {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.btn-next {
    width: 100%;
    height: 48px;
    border: 0;
    border-radius: 10px;
    background: #2f8fd6;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 12px rgba(47, 143, 214, 0.35);
    transition: 0.2s ease;
    cursor: pointer;
}

.btn-next:hover {
    background: #2680c4;
}

.btn-next:active {
    transform: translateY(1px);
}

.steps-box {
    margin-top: 18px;
    background: #f6f8fb;
    border: 1px solid #e8edf3;
    border-radius: 12px;
    padding: 14px 16px;
}

.steps-title {
    font-size: 14px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 10px;
}

.steps-title i {
    color: #1d4ed8;
    margin-right: 4px;
}

.steps-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.steps-list li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 13px;
    line-height: 1.5;
    color: #4b5563;
    margin-bottom: 8px;
}

.steps-list li:last-child {
    margin-bottom: 0;
}

.steps-ico {
    flex-shrink: 0;
}

.input-icon-group:has(input.is-invalid),
.input-icon-group:has(select.is-invalid),
.agree-box:has(input.is-invalid) {
    border-color: #e03131 !important;
    box-shadow: 0 0 0 3px rgba(224, 49, 49, 0.12) !important;
    background: #fff5f5 !important;
}

button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ===================== CAROUSEL POSTER ===================== */
.poster-carousel {
    width: 100%;
    max-width: 720px;
    margin: 20px auto;
    overflow: hidden;
    padding: 6px 0 10px;
    flex-shrink: 0;
}

.poster-track {
    display: flex;
    gap: 14px;
    width: max-content;
    animation: posterScroll 30s linear infinite;
}

.poster-carousel:hover .poster-track {
    animation-play-state: paused;
}

.poster-item {
    flex: 0 0 auto;
    width: 230px;
    align-self: flex-start;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-left: 4px solid #1d4ed8;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.poster-item img {
    display: block;
    width: 100%;
    height: auto;
}

@keyframes posterScroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ===================== SITE FOOTER ===================== */
.site-footer {
    background: #0a2e6e;
    color: #fff;
    padding: 16px;
    flex-shrink: 0;
}

.site-footer__inner {
    max-width: 720px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.site-footer__copy {
    font-size: 13px;
    margin: 0;
}

.site-footer__icons {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 16px;
}

.site-footer__icons a {
    color: #fff;
    text-decoration: none;
    opacity: 0.9;
    transition: opacity 0.2s ease;
}

.site-footer__icons a:hover {
    opacity: 1;
}

.scroll-top {
    position: fixed;
    right: 16px;
    bottom: 16px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 0;
    background: #1d4ed8;
    color: #fff;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(29, 78, 216, 0.4);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
    z-index: 600;
}

.scroll-top.show {
    opacity: 1;
    visibility: visible;
}

/* ===================== HERO BOX ===================== */
.hero-box {
    margin-top: 18px;
    margin-bottom: 20px;
    padding: 0 10px;
}

/* ===================== BTN-MK ===================== */
.btn-mk {
    color: #fff;
    background-color: #3497db;
}

/* ===================== SITE HEADER ===================== */
.site-header {
    background: #ffffff;
    border-bottom: 1px solid #eee;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 500;
}

.site-header__inner {
    max-width: 960px;
    margin: 0 auto;
    padding: 10px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.site-header__brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.site-header__bell {
    position: relative;
    color: #f9a825;
    font-size: 24px;
    text-decoration: none;
}

.site-header__brand-img {
    height: 42px;
    width: auto;
    display: block;
}

.site-header__bell-img {
    height: 32px;
    width: auto;
    display: block;
}

/* ===================== RESPONSIVE ===================== */
@media (max-width: 576px) {
    .container.container-narrow {
        max-width: 100%;
        padding-left: 14px;
        padding-right: 14px;
    }

    .header img {
        max-width: 100%;
    }

    .form-wrapper {
        max-width: 100%;
    }

    .form-box {
        padding: 16px;
        border-radius: 12px;
    }

    .photo-style-form .form-label-custom {
        font-size: 13px;
    }

    .photo-style-form .agree-box label {
        font-size: 12px;
    }
}
