/* -------------------------------------------------------------
   Piala Seri-Ibu Kraf - Submit Your Entry Page Styles
   Scoped specifically for the submission form subpage
   ------------------------------------------------------------- */

/* Page Base */
.subpage-body {
    background-color: #073625;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    font-family: "Acumin Variable Concept", sans-serif;
    color: #333333;
}


/* Subpage Hero Section */
.subpage-hero {
    position: relative;
 
    background: linear-gradient(180deg, rgba(7, 54, 37, 0.88) 0%, rgba(10, 72, 49, 0.94) 100%);
   
  
    
    padding-top: 6%;
    padding-bottom: 10%;
    width: 100%;
    z-index: 2;
    overflow: hidden;
}

.subpage-hero::before {
    content: "";
    position: absolute;
    inset: 0;
     background-image: url(../images/pattern-overlay.png);
       background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -1;
    opacity: 0.6;
}

.hero-inner {
    width: 100%;
    max-width: 1320px;
    margin: 0 auto;
}

.hero-logo-col {
    display: flex;
    align-items: center;
}

.hero-logo {
    width: clamp(230px, 24vw, 320px);
    height: auto;
    object-fit: contain;
    display: block;
    filter: brightness(0) invert(1);
}

.hero-dates-col {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

.date-block {
    color: #ffffff;
}

.date-label {
    font-family: "Acumin Variable Concept", sans-serif;
    font-weight: 700;
    font-stretch: extra-condensed;
    font-variation-settings: "wdth" 50, "wght" 700;
    font-size: clamp(1.2rem, 1.55vw, 1.45rem);
    line-height: 1.1;
    color: #ffffff;
    margin-bottom: 0;
    letter-spacing: 0.01em;
}

.date-value {
    font-family: "Acumin Variable Concept", sans-serif;
    font-weight: 700;
    font-stretch: extra-condensed;
    font-variation-settings: "wdth" 50, "wght" 700;
    font-size: clamp(1.2rem, 1.55vw, 1.45rem);
    line-height: 1.1;
    color: #ffffff;
    margin-bottom: 0;
    letter-spacing: 0.01em;
}

/* White pattern border line at bottom of hero */
.subpage-pattern-line {
    background: url(../images/pattern-line.svg) repeat-x bottom center;
    background-size: auto 100%;
    width: 100%;
    height: 5dvi;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 3;
    pointer-events: none;
}

/* Main Form Section */
.form-section {
    position: relative;
    background-color: #ffffff;
    background-image: url(../images/bg-layered-bg.png);
    background-repeat: no-repeat;
    background-position: bottom center;
    background-size: 100% auto;
    padding-top: 3.5rem;
    padding-bottom: 5rem;
    min-height: calc(100vh - 300px);
    overflow: hidden;
}

.form-container-custom {
    /* max-width: 1280px; */
    margin: 0 auto;
    position: relative;
    z-index: 5;
}

/* Decorative Motifs */
.deco-asset-1 {
    position: absolute;
    top: 0px;
    right: 0px;
    width: clamp(100px, 10vw, 140px);
    height: auto;
    object-fit: contain;
    z-index: 4;
    pointer-events: none;
    user-select: none;
    transform: translate(25%, 0%);
}

.deco-asset-2 {
    position: absolute;
    bottom: 0px;
    left: 0px;
    width: clamp(110px, 12vw, 160px);
    height: auto;
    object-fit: contain;
    z-index: 4;
    pointer-events: none;
    user-select: none;
    transform: translate(-10%, 15%);
}

/* Left Title Column */
.info-col {
    padding-right: 1.5rem;
}

.form-title {
    font-family: "Acumin Variable Concept", sans-serif;
    font-weight: 700;
    font-stretch: extra-condensed;
    font-variation-settings: "wdth" 50, "wght" 700;
    font-size: clamp(2.4rem, 3.8vw, 3.3rem);
    line-height: 1.05;
    color: #441E05;
    margin-bottom: 0.65rem;
    letter-spacing: -0.01em;
}

.box-pattern-svg {
    width: 110px;
    height: auto;
    display: block;
    margin-bottom: 1.4rem;
}

.form-subtitle {
    font-family: "Acumin Variable Concept", sans-serif;
    font-weight: 500;
    font-size: 1.05rem;
    line-height: 1.4;
    color: #441E05;
    max-width: 25ch;
    margin-bottom: 0;
}

/* Form Column & Tabs (Desktop) */
.form-card-wrapper {
    position: relative;
}

.desktop-tabs {
    display: flex;
    gap: 14px;
    margin-bottom: -16px;
    position: relative;
    z-index: 6;
    padding-left: 2.5rem;
}

.tab-pill {
    font-family: "Acumin Variable Concept", sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 9px 28px;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    outline: none;
    border: 1.5px solid #0A4831;
    background: #ffffff;
    color: #0A4831;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.tab-pill.active {
    background: #0A4831;
    color: #ffffff;
    border-color: #0A4831;
    box-shadow: 0 4px 12px rgba(10, 72, 49, 0.18);
}

.tab-pill:hover:not(.active) {
    background: rgba(10, 72, 49, 0.05);
}

/* White Form Card */
.form-card {
    background: #ffffff;
    border: 1px solid #DCE6E1;
    border-radius: 18px;
    padding: 3rem 2.8rem 2.5rem 2.8rem;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.04);
    position: relative;
    z-index: 5;
}

/* Form Controls */
.form-group-custom {
    margin-bottom: 1.4rem;
}

.form-label-custom {
    display: block;
    font-family: "Acumin Variable Concept", sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    color: #441E05;
    margin-bottom: 0.45rem;
}

.input-pill {
    width: 100%;
    height: 48px;
    padding: 0 1.25rem;
    font-family: "Acumin Variable Concept", sans-serif;
    font-size: 0.95rem;
    color: #222222;
    background-color: #ffffff;
    border: 1.5px solid #3C6E5B;
    border-radius: 50px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.input-pill:focus {
    border-color: #0A4831;
    box-shadow: 0 0 0 3px rgba(10, 72, 49, 0.12);
}

.input-pill::placeholder {
    color: #999999;
    opacity: 0.85;
}

.input-unit-group {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
}

.input-unit-group .input-pill {
    padding-right: 4.8rem;
}

.input-unit-group .unit-select {
    position: absolute;
    right: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-color: transparent;
    border: none;
    outline: none;
    font-family: "Acumin Variable Concept", sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    color: #0A4831;
    cursor: pointer;
    padding-right: 1.15rem;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 14 9' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L7 7L13 1' stroke='%230A4831' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right center;
    background-size: 11px 7px;
    line-height: 1;
    z-index: 2;
}

.input-unit-group .unit-select:focus {
    outline: none;
}

.input-unit-group .unit-select option {
    font-weight: 600;
    color: #222222;
    background-color: #ffffff;
}

select.select-pill {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='14' height='9' viewBox='0 0 14 9' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L7 7L13 1' stroke='%233C6E5B' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1.25rem center;
    background-size: 13px 8px;
    padding-right: 2.75rem;
    cursor: pointer;
}

select.select-pill:invalid,
select.select-pill option:disabled {
    color: #888888;
}

.textarea-custom {
    width: 100%;
    min-height: 110px;
    padding: 0.9rem 1.25rem;
    font-family: "Acumin Variable Concept", sans-serif;
    font-size: 0.95rem;
    line-height: 1.5;
    color: #222222;
    background-color: #ffffff;
    border: 1.5px solid #3C6E5B;
    border-radius: 16px;
    outline: none;
    resize: vertical;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.textarea-custom:focus {
    border-color: #0A4831;
    box-shadow: 0 0 0 3px rgba(10, 72, 49, 0.12);
}

/* Artwork Sub-Sections */
.artwork-section-title {
    font-family: "Acumin Variable Concept", sans-serif;
    font-weight: 700;
    font-size: 0.92rem;
    letter-spacing: 0.05em;
    color: #441E05;
    text-transform: uppercase;
    margin-top: 0.6rem;
    margin-bottom: 0.75rem;
}

/* View Selector Pills */
.views-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 0.85rem;
}

.view-btn {
    font-family: "Acumin Variable Concept", sans-serif;
    font-weight: 700;
    font-size: 0.82rem;
    padding: 5px 16px;
    border-radius: 50px;
    cursor: pointer;
    background: #ffffff;
    color: #441E05;
    border: 1.5px solid #441E05;
    outline: none;
    transition: all 0.2s ease;
}

.view-btn.active {
    background: #441E05;
    color: #ffffff;
    border-color: #441E05;
}

.view-btn:hover:not(.active) {
    background: rgba(68, 30, 5, 0.06);
}

/* Upload Dropzone */
.upload-dropzone {
    border: 1.5px solid #3C6E5B;
    border-radius: 16px;
    padding: 2.2rem 1.5rem;
    text-align: center;
    background: #ffffff;
    margin-bottom: 1.4rem;
    transition: background-color 0.2s ease, border-color 0.2s ease;
    cursor: pointer;
}

.upload-dropzone.drag-active {
    background-color: rgba(60, 110, 91, 0.06);
    border-color: #0A4831;
}

.drop-title {
    font-family: "Acumin Variable Concept", sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    color: #7A8E85;
    margin-bottom: 0.3rem;
}

.drop-subtitle {
    font-family: "Acumin Variable Concept", sans-serif;
    font-size: 0.8rem;
    color: #8E9F97;
    margin-bottom: 1.15rem;
}

.btn-browse {
    background: #0A4831;
    color: #ffffff;
    font-family: "Acumin Variable Concept", sans-serif;
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 8px 24px;
    border-radius: 50px;
    border: none;
    outline: none;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.1s ease;
}

.btn-browse:hover {
    background: #073625;
}

.file-status-text {
    font-size: 0.85rem;
    color: #0A4831;
    font-weight: 600;
    margin-top: 0.75rem;
}

/* Custom Checkboxes */
.checkbox-list {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
    margin-top: 1.5rem;
    margin-bottom: 2rem;
}

.custom-checkbox-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    user-select: none;
    margin-bottom: 0;
}

.custom-checkbox-row input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.custom-checkmark {
    width: 18px;
    height: 18px;
    min-width: 18px;
    border: 1.5px solid #3C6E5B;
    border-radius: 4px;
    background-color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 2px;
    transition: all 0.2s ease;
}

.custom-checkbox-row:hover .custom-checkmark {
    border-color: #0A4831;
}

.custom-checkbox-row input[type="checkbox"]:checked ~ .custom-checkmark {
    background-color: #3C6E5B;
    border-color: #3C6E5B;
}

.custom-checkmark::after {
    content: "";
    display: none;
    width: 5px;
    height: 9px;
    border: solid #ffffff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    margin-bottom: 2px;
}

.custom-checkbox-row input[type="checkbox"]:checked ~ .custom-checkmark::after {
    display: block;
}

.checkbox-label-text {
    font-family: "Acumin Variable Concept", sans-serif;
    font-size: 0.84rem;
    line-height: 1.45;
    color: #555555;
}

.checkbox-label-text a {
    color: #555555;
    text-decoration: underline;
    font-weight: 600;
}

.checkbox-label-text a:hover {
    color: #0A4831;
}

/* Action Buttons */
.step-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 12px;
    margin-top: 1.5rem;
}

.btn-step-next {
    background: #0A4831;
    color: #ffffff;
    font-family: "Acumin Variable Concept", sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 10px 32px;
    border-radius: 50px;
    border: none;
    outline: none;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.1s ease;
}

.btn-step-next:hover {
    background: #073625;
}

.btn-step-back {
    background: #0A4831;
    color: #ffffff;
    font-family: "Acumin Variable Concept", sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 10px 28px;
    border-radius: 50px;
    border: none;
    outline: none;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.btn-step-back:hover {
    background: #073625;
}

.btn-step-submit {
    background: #D71921;
    color: #ffffff;
    font-family: "Acumin Variable Concept", sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 10px 28px;
    border-radius: 50px;
    border: none;
    outline: none;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.btn-step-submit:hover {
    background: #b51219;
}

/* Mobile Accordion Elements (Hidden on Desktop) */
.mobile-accordion-header,
.mobile-accordion-pill {
    display: none;
}

/* Step Views switching */
.step-view {
    display: none;
}

.step-view.active-step {
    display: block;
}



/* Responsive Media Queries */
@media (max-width: 991px) {
    .subpage-hero {
        padding-top: 1.5rem;
        padding-bottom: 2.5rem;
    }

    .hero-inner {
        text-align: center;
        gap: 1.25rem;
    }

    .hero-logo-col {
        justify-content: center;
    }

    .hero-logo {
        width: 220px;
        margin: 0 auto;
    }

    .hero-dates-col {
        justify-content: center;
        gap: 1.5rem;
    }

    .date-label,
    .date-value {
        font-size: 1.05rem;
    }

    .subpage-pattern-line {
        height: 34px;
    }

    .form-section {
        padding-top: 2rem;
        padding-bottom: 4rem;
    }

    .form-title {
        font-size: 2.2rem;
    }

    .form-subtitle {
        max-width: 100%;
        font-size: 0.95rem;
    }

    .deco-asset-1 {
        top: 20px;
        right: 0px;
        width: 85px;
    }

    .deco-asset-2 {
        bottom: -5px;
        left: 0px;
        width: 85px;
    }

    /* Hide desktop top tabs */
    .desktop-tabs {
        display: none !important;
    }

    /* Accordion Styles on Mobile */
    .form-card {
        padding: 1.5rem 1.25rem;
        border-radius: 0 0 16px 16px;
        border-top: none;
        box-shadow: none;
    }

    .mobile-accordion-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        background: #0A4831;
        color: #ffffff;
        padding: 12px 18px;
        border-radius: 16px 16px 0 0;
        cursor: pointer;
        user-select: none;
        font-family: "Acumin Variable Concept", sans-serif;
        font-weight: 700;
        font-size: 0.95rem;
        letter-spacing: 0.05em;
        text-transform: uppercase;
    }

    .mobile-accordion-pill {
        display: flex;
        align-items: center;
        justify-content: space-between;
        background: #ffffff;
        color: #0A4831;
        border: 1.5px solid #0A4831;
        padding: 11px 18px;
        border-radius: 50px;
        cursor: pointer;
        user-select: none;
        font-family: "Acumin Variable Concept", sans-serif;
        font-weight: 700;
        font-size: 0.95rem;
        letter-spacing: 0.05em;
        text-transform: uppercase;
        margin-top: 1rem;
    }

    .mobile-accordion-header svg,
    .mobile-accordion-pill svg {
        transition: transform 0.2s ease;
    }

    .form-group-custom {
        margin-bottom: 1.15rem;
    }

    .input-pill {
        height: 44px;
        font-size: 0.9rem;
    }

    .step-actions {
        margin-top: 1.25rem;
    }

}

/* Responsive Media Queries */
@media (max-width: 600px) {
     .subpage-hero {
        padding-top: 15%;
        padding-bottom: 21%;
    }
    .date-label, .date-value {
        font-size: 5vw;
    }
}
/* reCAPTCHA */
.rcaptcha-wrapper {
    margin-bottom: 1rem;
}

.rcaptcha-warning {
    color: #c0392b;
    font-size: 0.85rem;
    margin-top: 0.5rem;
}

/* Submission Loader */
.spinner {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgb(0 0 0 / .5);
    z-index: 99999;
    display: flex;
    justify-content: center;
    align-items: center;
}

.spinner-container {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.spinner-loader {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 5px solid #fff;
    border-top: 5px solid #fff0;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* Thank You Popup (matches ms-ara-bloc) */
.thankyou-popup.swal2-popup {
    width: 37em;
    max-width: 100%;
}

.thankyou-popup h2.swal2-title {
    padding: 0 1em 1em;
}

.thankyou-popup .tick {
    display: inline-block;
    vertical-align: middle;
    height: 55px;
    width: 55px;
    background-image: url(https://imagedelivery.net/TdjZsXzzZt_je48pBzV3SA/03cad984-b6ba-4e84-d25d-e832b89df000/400);
    background-repeat: no-repeat;
    background-size: contain;
}

.thankyou-popup .thankyou-text {
    font-weight: 700;
    color: #333333;
}

.thankyou-popup .gtline {
    display: block;
    max-width: 100%;
    height: 2px;
    background-color: #545454;
    margin: 1rem auto;
}

.thankyou-popup .swal2-styled.swal2-confirm {
    background: #fff;
    font-weight: bold;
    padding: 10px 30px;
    border: 3px solid #000;
    color: #000;
    text-transform: uppercase;
}

@media only screen and (max-width: 767px) {
    .thankyou-popup .thankyou-text {
        font-size: 14px;
    }
}
