/* =====================================================
   ETERNA STUDIO GLOBAL
   BORANG TEMPAHAN E-INVITE
===================================================== */


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

:root {

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

    --pink: #C98F91;

    --text: #333333;
    --muted: #777777;

    --white: #ffffff;

    --border: rgba(181, 201, 211, 0.65);

    --shadow:
        0 12px 35px rgba(80, 100, 110, 0.08);

}


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

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}


html {
    scroll-behavior: smooth;
}


body {

    min-height: 100vh;

    background:
        linear-gradient(
            145deg,
            #E5EEF1,
            #f9fbfc
        );

    color: var(--text);

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

    font-size: 14px;

    line-height: 1.6;

    -webkit-text-size-adjust: 100%;
}


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

.form-wrapper {

    width: 100%;
    max-width: 760px;

    margin: 0 auto;

    padding:
        18px
        15px
        45px;

}


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

.progress-area {

    margin-bottom: 18px;

}


.progress-top {

    display: flex;

    justify-content: space-between;

    margin-bottom: 7px;

    font-size: 11px;

    color: #71818a;

}


.progress-bar {

    width: 100%;

    height: 5px;

    overflow: hidden;

    border-radius: 100px;

    background: rgba(181, 201, 211, 0.35);

}


#progressFill {

    width: 12.5%;

    height: 100%;

    border-radius: inherit;

    background: var(--blue);

    transition: width 0.3s ease;

}


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

.form-page {

    display: none;

    animation: fadePage 0.25s ease;

}


.form-page.active {
    display: block;
}


@keyframes fadePage {

    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }

}


/* =====================================================
   TYPOGRAPHY
===================================================== */

h1,
h2 {

    font-family: "Cormorant Garamond", serif;

}


.page-title {

    margin-bottom: 25px;
    text-transform: uppercase;
    font-size: clamp(
        34px,
        8vw,
        48px
    );

    font-weight: 600;

    line-height: 1;

    color: #41535c;

}


.policy-box h1 {

    margin-bottom: 22px;

    font-size: 40px;

    color: #41535c;

}


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

.warning-banner {

    display: flex;

    gap: 12px;

    align-items: flex-start;

    padding: 16px;

    margin-bottom: 25px;

    border-radius: 15px;

    font-size: 12px;

}


.warning-banner i {

    margin-top: 2px;

    font-size: 17px;

}


.warning-banner strong {

    display: block;

    margin-bottom: 4px;

    font-size: 13px;

    letter-spacing: 0.5px;

}


.warning-banner p {

    margin: 0;

}


.pink-warning {

    background: rgba(201, 143, 145, 0.18);

    border: 1px solid rgba(201, 143, 145, 0.35);

    color: #68484a;

}


.red-warning {

    background: #f8dddd;

    border: 1px solid #edb9b9;

    color: #8c3636;

}


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

.policy-box {

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

    padding: 22px 18px;

    border-radius: 20px;

    box-shadow: var(--shadow);

}


.policy-list {

    display: flex;

    flex-direction: column;

    gap: 12px;

}


.policy-item {

    display: grid;

    grid-template-columns: 35px 1fr;

    gap: 10px;

    padding-bottom: 12px;

    border-bottom: 1px solid rgba(181,201,211,0.35);

}


.policy-item:last-child {
    border-bottom: none;
}


.policy-item > span {

    width: 29px;
    height: 29px;

    display: flex;

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

    border-radius: 50%;

    background: var(--blue-light);

    color: #536a74;

    font-size: 10px;

    font-weight: 600;

}


.policy-item p {

    font-size: 12px;

    line-height: 1.55;

}


.checkbox-row {

    display: flex;

    align-items: flex-start;

    gap: 10px;

    margin-top: 22px;

    padding: 13px;

    border-radius: 12px;

    background: rgba(181,201,211,0.15);

    font-size: 12px;

}


.checkbox-row input {

    width: 17px;
    height: 17px;

    flex: 0 0 auto;

    margin-top: 2px;

}


/* =====================================================
   FORM GROUP
===================================================== */

.form-group {

    margin-bottom: 21px;

}


.form-group label {

    display: block;

    margin-bottom: 6px;

    font-size: 12px;

    font-weight: 600;

    color: #46565e;

}


.form-group label span {

    color: #bd6f72;

}


.form-group small {

    display: block;

    margin:
        -2px
        0
        7px;

    color: #8b8b8b;

    font-size: 10px;

    line-height: 1.5;

}


input,
textarea,
select {

    width: 100%;

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

    border-radius: 12px;

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

    color: var(--text);

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

    font-size: 16px;

    outline: none;

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

}

input::placeholder,
textarea::placeholder {
    color: #b8c1c4;
    opacity: 1;
}

input,
select {

    min-height: 47px;

    padding:
        11px
        13px;

}


textarea {

    min-height: 115px;

    resize: vertical;

    padding:
        12px
        13px;

}


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

    border-color: var(--blue);

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

}


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

.hidden {

    display: none !important;

}


.conditional {

    animation: fadePage 0.2s ease;

}


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

.upload-box {

    position: relative;

    min-height: 105px;

    display: flex;

    flex-direction: column;

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

    gap: 7px;

    border: 1.5px dashed #a9c1cc;

    border-radius: 15px;

    background: rgba(229,238,241,0.4);

    color: #627782;

    text-align: center;

    overflow: hidden;

}


.upload-box i {

    font-size: 25px;

    color: #8ba8b4;

}


.upload-box span {

    font-size: 11px;

}


.upload-box input[type="file"] {

    position: absolute;

    inset: 0;

    width: 100%;
    height: 100%;

    opacity: 0;

    cursor: pointer;

}


#monogramPreview img,
#qrPreview img,
#paymentPreview img {

    display: block;

    width: 30%;

    margin-top: 10px;

    border-radius: 10px;

}


.gallery-preview {

    display: grid;

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

    gap: 8px;

    margin-top: 10px;

}


.gallery-preview-item {

    position: relative;

    aspect-ratio: 4 / 3;

    overflow: hidden;

    border-radius: 10px;

}


.gallery-preview-item img {

    width: 100%;
    height: 100%;

    object-fit: cover;

}


.remove-image {

    position: absolute;

    top: 5px;
    right: 5px;

    width: 25px;
    height: 25px;

    display: flex;

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

    border: none;

    border-radius: 50%;

    background: rgba(0,0,0,0.65);

    color: white;

    font-size: 11px;

}


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

.checkbox-grid {

    display: grid;

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

    gap: 9px;

}


.choice-box {

    position: relative;

    display: flex;

    align-items: center;

    min-height: 45px;

    padding: 8px 10px;

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

    border-radius: 11px;

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

    cursor: pointer;

}


.choice-box input {

    width: 17px;
    height: 17px;

    min-height: 17px;

    margin-right: 8px;

    flex: 0 0 auto;

}


.choice-box span {

    font-size: 11px;

}


.choice-box small {

    display: block;

    margin: 0;

    color: #999;

    font-size: 8px;

}


.disabled-choice {

    opacity: 0.5;

    cursor: not-allowed;

}


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

.contact-row {

    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 8px;

    margin-bottom: 8px;

}


.add-contact-btn {

    display: inline-flex;

    align-items: center;

    gap: 7px;

    margin-top: 4px;

    padding: 9px 12px;

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

    border-radius: 10px;

    background: transparent;

    color: #5d737d;

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

    font-size: 10px;

    cursor: pointer;

}


.remove-contact-btn {

    width: 100%;

    margin-top: -3px;
    margin-bottom: 8px;

    padding: 6px;

    border: none;

    border-radius: 8px;

    background: #f5dddd;

    color: #9a5558;

    font-size: 10px;

}


/* =====================================================
   URGENT
===================================================== */

.urgent-notice {

    display: flex;

    gap: 9px;

    padding: 12px;

    margin-bottom: 18px;

    border-radius: 11px;

    background: rgba(201,143,145,0.15);

    color: #795052;

    font-size: 11px;

}


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

.total-box,
.review-total {

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 15px;

    margin: 20px 0;

    padding: 18px;

    border-radius: 16px;

    background: var(--pink);

}


.total-box span,
.review-total span {

    font-family: "Lora", serif;

    font-size: 16px;

    color: white;

}


.total-box strong,
.review-total strong {

    font-family: "Lora", serif;

    font-size: 23px;

    color: white;

}


/* =====================================================
   BUTTONS
===================================================== */

.page-actions {

    display: flex;

    gap: 10px;

    margin-top: 28px;

}


.page-actions button {

    min-height: 48px;

    padding: 10px 17px;

    border-radius: 12px;

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

    font-size: 11px;

    font-weight: 600;

    cursor: pointer;

}


.page-actions .back-btn {

    flex: 0 0 auto;

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

    background: white;

    color: #62727a;

}


.page-actions .next-btn,
.submit-btn {

    flex: 1;

    border: none;

    background: #B5C9D3;

    color: white;

}


.submit-btn {

    background: #B5C9D3 !important;

}


.single-action .next-btn {

    width: 100%;

}


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

.review-intro {

    margin-bottom: 18px;

    color: #777;

    font-size: 11px;

}


.review-section {

    margin-bottom: 15px;

    padding: 15px;

    border-radius: 15px;

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

    border: 1px solid rgba(181,201,211,0.45);

}


.review-section h3 {

    margin-bottom: 10px;

    color: #536e79;

    font-family: "Cormorant Garamond", serif;

    font-size: 23px;

}


.review-row {

    display: grid;

    grid-template-columns: 40% 60%;

    gap: 10px;

    padding: 6px 0;

    border-bottom: 1px solid rgba(181,201,211,0.2);

    font-size: 10px;

}


.review-row:last-child {
    border-bottom: none;
}


.review-label {

    color: #8a8a8a;

}


.review-value {

    color: #333;

    word-break: break-word;

}


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

.payment-card {

    padding: 20px;

    margin-bottom: 25px;

    border-radius: 18px;

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

    text-align: center;

    box-shadow: var(--shadow);

}


.payment-card p {

    margin-bottom: 15px;

    font-size: 11px;

    color: #777;

}


.payment-qr img {

    width: min(260px, 80vw);

    height: auto;

    display: block;

    margin: 0 auto 15px;

    border-radius: 12px;

}


.payment-details {

    display: flex;

    flex-direction: column;

    gap: 3px;

    font-size: 11px;

}


.final-agreement {

    display: flex;

    gap: 10px;

    align-items: flex-start;

    padding: 13px;

    margin-top: 15px;

    border-radius: 12px;

    background: rgba(181,201,211,0.16);

    color: #63757d;

    font-size: 10px;

}


.final-agreement i {

    margin-top: 2px;

}


/* =====================================================
   MODAL
===================================================== */

.modal-overlay {

    position: fixed;

    inset: 0;

    z-index: 9999;

    display: none;

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

    padding: 20px;

    background: rgba(40,50,55,0.45);

    backdrop-filter: blur(4px);

}


.modal-overlay.show {

    display: flex;

}


.success-modal {

    width: 100%;

    max-width: 330px;

    padding: 28px 20px;

    border-radius: 20px;

    background: white;

    text-align: center;

    box-shadow:
        0 20px 60px rgba(0,0,0,0.15);

}


.success-icon {

    width: 58px;
    height: 58px;

    display: flex;

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

    margin: 0 auto 13px;

    border-radius: 50%;

    background: var(--blue-light);

    color: #59727c;

    font-size: 23px;

}


.success-modal h2 {

    margin-bottom: 5px;

    font-size: 31px;

    color: #536e79;

}


.success-modal p {

    margin-bottom: 18px;

    color: #777;

    font-size: 11px;

}


.success-modal button {

    width: 100%;

    min-height: 45px;

    border: none;

    border-radius: 11px;

    background: #536e79;

    color: white;

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

    font-weight: 600;

}


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

@media (max-width: 600px) {

    .form-wrapper {

        padding:
            12px
            11px
            35px;

    }


    .policy-box {

        padding: 18px 14px;

    }


    .page-title {

        font-size: 28px;
        text-transform: uppercase;
    }


    .policy-box h1 {

        font-size: 34px;

    }


    .checkbox-grid {

        grid-template-columns: 1fr 1fr;

    }


    .contact-row {

        grid-template-columns: 1fr;

    }

  input,
textarea,
select {
    font-size: 16px !important;
}

input::placeholder,
textarea::placeholder {
    font-size: 12px;
    color: #b8c1c4;
}


    .page-actions {

        position: sticky;

        bottom: 0;

        z-index: 50;

        margin-left: -11px;

        margin-right: -11px;

        padding: 10px 11px;

        background: rgba(249,251,252,0.94);

        backdrop-filter: blur(8px);

    }

}


@media (max-width: 360px) {

    .checkbox-grid {

        grid-template-columns: 1fr;

    }


    .page-actions button {

        font-size: 10px;

    }

}

.form-closed-message {
    display: none;
    min-height: 100vh;
    padding: 60px 25px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    text-align: center;
    background: #e5eef1;
}

.form-closed-message.show {
    display: flex;
}

.form-closed-message i {
    font-size: 42px;
    color: #6f858d;
    margin-bottom: 20px;
}

.form-closed-message h2 {
    margin: 0 0 10px;
    font-family: "Cormorant Garamond", serif;
    font-size: 34px;
    color: #40545b;
}

.form-closed-message p {
    max-width: 350px;
    margin: 0;
    font-family: "Poppins", sans-serif;
    font-size: 13px;
    line-height: 1.7;
    color: #5f6d72;
}