/* =====================================================
   ROOT
===================================================== */

:root {

    --blue-main: #B5C9D3;
    --blue-light: #E5EEF1;

    --red: #C98F91;
    --red-dark: #A86F72;

    --text: #30383C;
    --muted: #7B8589;

    --white: #FFFFFF;

    --border: #D8E3E7;

    --shadow:
        0 10px 30px rgba(55, 75, 82, 0.08);

}


/* =====================================================
   RESET
===================================================== */

* {
    box-sizing: border-box;
}


html {
    scroll-behavior: smooth;
}


body {

    margin: 0;

    background:
        linear-gradient(
            180deg,
            var(--blue-light),
            #F8FBFC
        );

    color: var(--text);

    font-family:
        "Poppins",
        sans-serif;

    font-size: 14px;

}


button,
input,
select,
textarea {

    font-family:
        "Poppins",
        sans-serif;

}


button {
    cursor: pointer;
}


/* =====================================================
   WRAPPER
===================================================== */

.form-wrapper {

    width: 100%;

    max-width: 620px;

    margin: auto;

    min-height: 100vh;

    padding:
        20px
        15px
        40px;

}


/* =====================================================
   PROGRESS
===================================================== */

.progress-area {

    margin-bottom: 20px;

}


.progress-top {

    display: flex;

    justify-content: space-between;

    align-items: center;

    margin-bottom: 7px;

    font-size: 11px;

    color: var(--muted);

}


.progress-bar {

    height: 5px;

    background: #D7E2E6;

    border-radius: 50px;

    overflow: hidden;

}


#progressFill {

    width: 12.5%;

    height: 100%;

    background: var(--blue-main);

    transition:
        width 0.3s ease;

}


/* =====================================================
   PAGE
===================================================== */

.form-page {

    display: none;

    animation:
        fadeIn 0.3s ease;

}


.form-page.active {

    display: block;

}


@keyframes fadeIn {

    from {

        opacity: 0;

        transform:
            translateY(8px);

    }

    to {

        opacity: 1;

        transform:
            translateY(0);

    }

}


/* =====================================================
   SECTION TITLE
===================================================== */

.section-title {

    margin:
        15px
        0
        25px;

}


.section-title span {

    display: block;

    font-size: 11px;

    letter-spacing: 2px;

    color: var(--red-dark);

    font-weight: 600;

}


.section-title h1 {

    margin:
        2px
        0
        0;

    font-family:
        "Cormorant Garamond",
        serif;

    font-size: 40px;
text-transform: uppercase;
    line-height: 1;

    font-weight: 600;

}


/* =====================================================
   WARNING
===================================================== */

.warning-banner {

    display: flex;

    gap: 12px;
    background: rgba(194, 135, 142, 0.55);
    color: white;
    border-radius: 14px;
    border: 1px solid var(--red);
    padding: 17px;
    box-shadow: var(--shadow);

}


.warning-icon {

    font-size: 18px;

    flex-shrink: 0;

}


.warning-banner strong {

    display: block;

    font-size: 14px;

    letter-spacing: 0.5px;

}


.warning-banner p {

    margin:
        5px
        0
        0;

    font-size: 11px;

    line-height: 1.65;

}


.small-warning {

    align-items: center;

}


.small-warning i {

    font-size: 16px;

}


/* =====================================================
   POLICY
===================================================== */

.policy-box {

    background:
        rgba(255,255,255,0.85);

    border:
        1px solid
        var(--border);

    border-radius: 16px;

    padding:
        8px
        15px;

    box-shadow: var(--shadow);

}


.policy-item {

    display: grid;

    grid-template-columns:
        27px
        1fr;

    gap: 5px;

    padding:
        12px
        0;

    border-bottom:
        1px solid
        #E8EFF2;

}


.policy-item:last-child {

    border-bottom: none;

}


.policy-item span {

    font-weight: 600;

    color: var(--red-dark);

}


.policy-item p {

    margin: 0;

    font-size: 12px;

    line-height: 1.6;

}


/* =====================================================
   FORM FIELD
===================================================== */

.field {

    margin-bottom: 20px;

}


.field label {

    display: block;

    margin-bottom: 6px;

    font-size: 13px;

    font-weight: 600;

}


.required {

    color: var(--red-dark);

}


.field small {

    display: block;

    margin:
        -2px
        0
        7px;

    color: var(--muted);

    font-size: 10px;

    line-height: 1.5;

}


/* =====================================================
   INPUT
===================================================== */

input,
select,
textarea {

    width: 100%;

    border:
        1px solid
        var(--border);

    background: white;

    color: var(--text);

    border-radius: 11px;

    padding:
        12px
        13px;

    outline: none;

    font-size: 12px;

    transition:
        border 0.2s,
        box-shadow 0.2s;

}


input:focus,
select:focus,
textarea:focus {

    border-color:
        var(--blue-main);

    box-shadow:
        0 0 0 3px
        rgba(181,201,211,0.25);

}


textarea {

    min-height: 120px;

    resize: vertical;

    line-height: 1.6;

}


input::placeholder,
textarea::placeholder {

    color: #A6B0B4;
  font-size: 12px;

}


/* =====================================================
   CONDITIONAL
===================================================== */

.conditional {

    animation:
        fadeIn 0.25s ease;

}


/* =====================================================
   CONTACT
===================================================== */

.contact-name {

    margin-bottom: 8px;

}


.add-contact {

    border: none;

    background:
        var(--blue-light);

    color:
        #4D646D;

    border-radius: 10px;

    padding:
        9px
        12px;

    font-size: 11px;

    margin-top: 3px;

}


.add-contact i {

    margin-right: 4px;

}


/* =====================================================
   CHECKBOX
===================================================== */

.checkbox-list {

    display: flex;

    flex-direction: column;

    gap: 9px;

    background: white;

    border:
        1px solid
        var(--border);

    border-radius: 12px;

    padding: 13px;

}


.checkbox-list label {

    display: flex;

    align-items: flex-start;

    gap: 8px;

    font-size: 11px;

    font-weight: 400;

    margin: 0;

}


.checkbox-list input {

    width: auto;

    margin-top: 2px;

}


/* =====================================================
   UPLOAD
===================================================== */

.upload-box {

    position: relative;

    border:
        1.5px dashed
        var(--blue-main);

    background:
        var(--blue-light);

    border-radius: 13px;

    padding:
        25px
        15px;

    text-align: center;

    color: #60737B;

    overflow: hidden;

}


.upload-box i {

    display: block;

    font-size: 28px;

    margin-bottom: 8px;

}


.upload-box span {

    display: block;

    font-size: 11px;

}


.upload-box input {

    position: absolute;

    inset: 0;

    width: 100%;

    height: 100%;

    opacity: 0;

    cursor: pointer;

}


#basicFileName,
#customFileName,
#paymentFileName {

    margin-top: 7px;

    color: var(--red-dark);

}

/* =====================================================
   CUSTOM IMAGE PREVIEW
===================================================== */

.custom-preview {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: flex-start;

    gap: 8px;
    margin-top: 12px;

    width: 100%;
}

.custom-preview-item {
    position: relative;

    flex: 0 0 75px !important;

    width: 75px !important;
    height: 75px !important;

    border-radius: 9px;
    overflow: hidden;

    background: #eef4f6;
    border: 1px solid #d5e2e6;
}

.custom-preview-item img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;
}


/* =====================================================
   BUTANG PADAM
===================================================== */

.custom-preview-remove {
    position: absolute;

    top: 4px;
    right: 4px;

    width: 20px;
    height: 20px;

    padding: 0;

    border: none;
    border-radius: 50%;

    background: rgba(60, 48, 43, 0.85);
    color: #fff;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 9px;

    cursor: pointer;
}


/* =====================================================
   NAMA FILE
===================================================== */

.custom-preview-name {
    position: absolute;

    left: 0;
    right: 0;
    bottom: 0;

    padding: 4px 5px;

    background: linear-gradient(
        transparent,
        rgba(0, 0, 0, 0.75)
    );

    color: #fff;

    font-size: 7px;

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}


/* =====================================================
   MOBILE
===================================================== */

@media (max-width: 600px) {

    .custom-preview {
        gap: 6px;
        flex-wrap: nowrap !important;
    }

    .custom-preview-item {
        flex: 0 0 60px !important;

        width: 60px !important;
        height: 60px !important;

        border-radius: 7px;
    }

    .custom-preview-remove {
        width: 18px;
        height: 18px;

        top: 3px;
        right: 3px;

        font-size: 8px;
    }

    .custom-preview-name {
        padding: 3px 4px;
        font-size: 6.5px;
    }

}


/* =====================================================
   EXAMPLE IMAGE
===================================================== */

.example-image {

    overflow: hidden;

    border-radius: 12px;

    background: #F2F5F6;

}


.example-image img {

    width: 40%;

    display: block;
    aspect-ratio: 9 / 16;
    object-fit: contain;

}


/* =====================================================
   ILLUSTRATION
===================================================== */

.illustration-grid {

    display: grid;

    grid-template-columns:
        repeat(2, 1fr);

    gap: 10px;

}


.illustration-card {

    position: relative;

    border:
        2px solid
        transparent;

    border-radius: 12px;

    overflow: hidden;

    background: white;

    cursor: pointer;

}


.illustration-card input {

    position: absolute;

    opacity: 0;

}


.illustration-card img {

    display: block;

    width: 100%;

    aspect-ratio: 1 / 1;

    object-fit: contain;

}


.illustration-card span {

    display: block;

    padding: 8px;

    text-align: center;

    font-size: 10px;

}


.illustration-card:has(input:checked) {

    border-color:
        var(--red);

}


/* =====================================================
   DIVIDER
===================================================== */

.divider {

    height: 1px;

    background:
        var(--border);

    margin:
        25px
        0;

}


/* =====================================================
   NOTICE
===================================================== */

.notice-box {

    display: flex;

    gap: 10px;

    background:
        #F8EDED;

    border:
        1px solid
        #E4C5C6;

    color:
        #805B5D;

    border-radius: 12px;

    padding: 13px;

    margin-bottom: 20px;

}


.notice-box i {

    margin-top: 3px;

}


.notice-box p {

    margin: 0;

    font-size: 11px;

    line-height: 1.6;

}


/* =====================================================
   TOTAL
===================================================== */

.total-box {

    display: flex;

    justify-content: space-between;

    align-items: center;

    background:
        var(--blue-light);

    border-radius: 15px;

    padding:
        17px;

    margin-top: 25px;

}


.total-box span {

    font-size: 12px;

}


.total-box strong {

    font-family:
        "Lora",
        serif;

    font-size: 25px;

}


/* =====================================================
   REVIEW
===================================================== */

.review-description {

    font-size: 11px;

    color: var(--muted);

    margin-top: -12px;

    margin-bottom: 20px;

}


.review-card {

    background: white;

    border:
        1px solid
        var(--border);

    border-radius: 13px;

    margin-bottom: 12px;

    overflow: hidden;

}


.review-card-title {

    background:
        var(--blue-light);

    padding:
        9px
        12px;

    font-size: 11px;

    font-weight: 600;

}


.review-row {

    display: grid;

    grid-template-columns:
        42%
        58%;

    padding:
        9px
        12px;

    border-bottom:
        1px solid
        #EDF2F4;

    font-size: 10px;

}


.review-row:last-child {

    border-bottom: none;

}


.review-row span:first-child {

    color: var(--muted);

}


.review-row span:last-child {

    word-break: break-word;

}


.review-total {

    display: flex;

    justify-content: space-between;

    align-items: center;

    background:
        var(--red);

    color: white;

    padding:
        17px;

    border-radius: 14px;

    margin-top: 15px;

}


.review-total strong {

    font-family:
        "Lora",
        serif;

    font-size: 23px;

}


/* =====================================================
   PAYMENT
===================================================== */

.payment-box {

    background: white;

    border:
        1px solid
        var(--border);

    border-radius: 16px;

    padding: 18px;

    text-align: center;

    margin-bottom: 25px;

}


.payment-qr {

    width:
        min(270px, 100%);

    display: block;

    margin:
        0
        auto
        15px;

    border-radius: 10px;

}


.payment-info {

    display: flex;

    flex-direction: column;

    gap: 4px;

    font-size: 11px;

}


.payment-info strong {

    font-size: 13px;

}


/* =====================================================
   AGREEMENT
===================================================== */

.agreement-box {

    display: flex;

    gap: 10px;

    background:
        var(--blue-light);

    border-radius: 12px;

    padding: 13px;

    margin-bottom: 20px;

}


.agreement-box i {

    color:
        #6C8791;

    margin-top: 2px;

}


.agreement-box p {

    margin: 0;

    font-size: 10px;

    line-height: 1.6;

}


/* =====================================================
   NAVIGATION
===================================================== */

.navigation {

    display: flex;

    justify-content: space-between;

    gap: 10px;

    margin-top: 30px;

}


.nav-button {

    border: none;

    border-radius: 11px;

    padding:
        12px
        16px;

    font-size: 11px;

    font-weight: 600;

}


.back-button {

    background: white;

    color: #61747C;

    border:
        1px solid
        var(--border);

}


.next-button {

    margin-left: auto;

    background:
        var(--blue-main);

    color: white;

}


.nav-button i {

    margin:
        0
        3px;

}


/* =====================================================
   SUBMIT
===================================================== */

.submit-button {

    width: 100%;

    border: none;

    background:
        var(--blue-main);

    color: white;

    border-radius: 12px;

    padding:
        14px;

    font-size: 12px;

    font-weight: 600;

}


.submit-button i {

    margin-right: 5px;

}


/* =====================================================
   SUCCESS
===================================================== */

.success-message {

    text-align: center;

    background: white;

    border:
        1px solid
        var(--border);

    border-radius: 17px;

    padding:
        25px
        18px;

    margin-top: 20px;

}


.success-message > i {

    font-size: 42px;

    color:
        #7896A0;

}


.success-message h2 {

    font-family:
        "Cormorant Garamond",
        serif;

    font-size: 31px;

    margin:
        8px
        0;

}


.success-message p {

    font-size: 11px;

    color: var(--muted);

    line-height: 1.6;

}


.whatsapp-button {

    display: inline-flex;

    align-items: center;

    gap: 7px;

    background:
        #6E8791;

    color: white;

    text-decoration: none;

    padding:
        11px
        15px;

    border-radius: 10px;

    font-size: 11px;

    margin-top: 7px;

}


/* =====================================================
   LOADING
===================================================== */

.loading-overlay {

    position: fixed;

    inset: 0;

    z-index: 9999;

    background:
        rgba(255,255,255,0.88);

    display: flex;

    justify-content: center;

    align-items: center;

}


.loading-box {

    background: white;

    padding:
        25px
        30px;

    border-radius: 15px;

    box-shadow:
        0 10px 40px
        rgba(0,0,0,0.12);

    text-align: center;

}


.loading-box i {

    font-size: 28px;

    color:
        #6E8791;

}


.loading-box p {

    margin:
        10px
        0
        3px;

    font-size: 12px;

}


.loading-box small {

    font-size: 9px;

    color: var(--muted);

}


/* =====================================================
   MOBILE
===================================================== */

@media (max-width: 600px) {

    .form-wrapper {

        padding:
            15px
            12px
            30px;

    }


    .section-title h1 {

        font-size: 28px;

    }


    .warning-banner {

        padding: 14px;

    }


    /*
       16px mengelakkan browser mobile
       zoom apabila input ditekan.
    */

    input,
    select,
    textarea {

        font-size: 16px;

    }

}


/* =====================================================
   SMALL PHONE
===================================================== */

@media (max-width: 360px) {

    .section-title h1 {

        font-size: 28px;

    }


    .illustration-grid {

        grid-template-columns:
            1fr;

    }

}