/* Font Family */
body {
    font-family: 'Prompt', sans-serif;
}

/* Background - White & Blue Theme */
.campaign-wrapper {
    min-height: 100vh;
    background: linear-gradient(135deg, #f8fbff 0%, #dbeafe 100%);
    position: relative;
    overflow-x: hidden;
}

/* Add a vignette/gradient overlay to soften the burst and make it look more like the reference */
.campaign-wrapper::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.7) 0%, rgba(191, 219, 254, 0.8) 100%);
    pointer-events: none;
    z-index: 0;
}

.content-container {
    position: relative;
    z-index: 1;
    padding: 20px;
}

.landing-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(234, 244, 255, 0.96));
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(15, 37, 96, 0.15);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #1f2a56 !important;
    border: 1px solid rgba(30, 64, 175, 0.12);
}

.landing-card h1,
.landing-card p,
.landing-card .lead {
    color: #1f2a56 !important;
}

.landing-card .btn-outline-light {
    border-width: 2px;
    color: #1d4ed8;
    border-color: #1d4ed8;
    background: transparent;
}

.landing-card .btn-outline-light:hover {
    background: #1d4ed8;
    color: #fff;
}

.product-badge {
    display: inline-block;
    background: rgba(30, 64, 175, 0.12);
    border-radius: 999px;
    padding: 6px 20px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #1d4ed8;
    box-shadow: 0 4px 12px rgba(30, 64, 175, 0.12);
}

.gap-3>*+* {
    margin-top: 15px;
    margin-left: 0;
}

@media (min-width: 576px) {
    .gap-3>*+* {
        margin-left: 15px;
        margin-top: 0;
    }
}

.modal-content {
    border-radius: 20px;
    border: none;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.modal .modal-header .close span {
    color: #1d4ed8;
    font-size: 28px;
}

.modal .modal-header {
    border-bottom: none;
}

fieldset {
    background: rgba(255, 255, 255, 0.92);
    border-radius: 16px;
    border: 2px solid #bfd7ff;
    padding: 18px !important;
}

#entryForm {
    max-width: 700px;
    margin: 0 auto;
    width: 100%;
}

legend {
    font-weight: 600;
    color: #1d4ed8;
}

.slip-item {
    background: rgba(255, 255, 255, 0.92);
    border-radius: 16px;
    padding: 28px 22px 24px;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
    margin: 0 auto 20px;
    position: relative;
    border: 2px solid rgba(29, 78, 216, 0.12);
    max-width: 700px;
}

.slip-item-error {
    border-color: rgba(220, 38, 38, 0.75);
    box-shadow: 0 12px 28px rgba(220, 38, 38, 0.18);
}

.slip-item-error .custom-input,
.slip-item-error .custom-file-upload {
    border-color: rgba(220, 38, 38, 0.6);
    box-shadow: inset 0 0 0 1px rgba(220, 38, 38, 0.25);
}

.slip-item .remove-slip {
    position: absolute;
    top: 14px;
    right: 14px;
}

.slip-item .custom-input {
    background: #ffffff;
}

.slip-item .custom-file-upload {
    margin-top: 12px;
}

.receipt-row {
    margin-top: 12px;
}

.receipt-row .custom-file-upload {
    margin-top: 0;
    width: 100%;
}

.receipt-row .btn-receipt-sample {
    height: 52px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: #1d4ed8;
    border-color: #1d4ed8;
    transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.receipt-row .btn-receipt-sample:hover,
.receipt-row .btn-receipt-sample:focus {
    background: #1d4ed8;
    color: #ffffff;
    box-shadow: 0 8px 16px rgba(30, 64, 175, 0.2);
}

.receipt-row .btn-receipt-sample i {
    margin-right: 6px;
}

@media (max-width: 575.98px) {
    .receipt-row {
        margin-top: 16px;
    }

    .receipt-row .btn-receipt-sample {
        margin-top: 8px;
    }
}

.lookup-row .lookup-status {
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    font-weight: 600;
    background: rgba(37, 99, 235, 0.08);
    color: #1d4ed8;
    transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
    box-shadow: inset 0 0 0 1px rgba(37, 99, 235, 0.12);
    pointer-events: none;
}

.lookup-status.status-loading {
    background: rgba(37, 99, 235, 0.18);
    color: #1d4ed8;
}

.lookup-status.status-success {
    background: rgba(34, 197, 94, 0.18);
    color: #047857;
    box-shadow: inset 0 0 0 1px rgba(16, 185, 129, 0.35);
}

.lookup-status.status-error {
    background: rgba(239, 68, 68, 0.18);
    color: #b91c1c;
    box-shadow: inset 0 0 0 1px rgba(248, 113, 113, 0.4);
}

.lookup-status.status-idle {
    background: rgba(37, 99, 235, 0.08);
    color: #1d4ed8;
    box-shadow: inset 0 0 0 1px rgba(37, 99, 235, 0.12);
}

@media (max-width: 575.98px) {
    .lookup-row .lookup-status {
        margin-top: 10px;
    }
}

.custom-file-upload.inline {
    justify-content: space-between;
    padding: 0 20px;
}

/* Menu Button */
.menu-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 10;
    color: #1d4ed8;
    font-size: 24px;
    cursor: pointer;
    background: rgba(30, 64, 175, 0.15);
    padding: 6px 12px;
    border-radius: 8px;
    box-shadow: 0 10px 20px rgba(15, 37, 96, 0.15);
}

/* Form Inputs */
.custom-input {
    border-radius: 12px;
    border: 2px solid #e5e7f0;
    height: 48px;
    font-size: 16px;
    background: #ffffff;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.06);
    color: #2f3442;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.custom-input::placeholder {
    color: #9aa0b5;
}

.custom-input:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
}

.custom-input[readonly],
.custom-input:disabled {
    background: #f5f7fb;
    border-color: #d4d8e5;
    color: #6b7285;
}

.input-icon {
    position: absolute;
    left: 15px;
    top: 10px;
    color: #666;
    z-index: 5;
    font-size: 18px;
}

/* Custom Button */
.btn-custom {
    background: linear-gradient(to bottom, #3b82f6, #1d4ed8);
    border: none;
    color: white;
    font-weight: bold;
    height: 45px;
    border-radius: 5px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    font-size: 18px;
}

.btn-custom:hover {
    background: linear-gradient(to bottom, #60a5fa, #1e3a8a);
    color: white;
}

/* Gender Selector */
.btn-gender {
    background-color: #fff;
    border: 1px solid #d4d8e5;
    color: #48506a;
    font-weight: 500;
}

.btn-gender.active {
    background-color: #1d4ed8;
    color: white;
    border-color: #1d4ed8;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.btn-gender:not(.active):hover {
    background-color: rgba(37, 99, 235, 0.1);
}

/* File Upload Placeholder */
.custom-file-upload {
    background-color: #ffffff;
    height: 52px;
    border-radius: 12px;
    border: 2px solid #e5e7f0;
    display: flex;
    align-items: center;
    padding: 0 20px;
    color: #495168;
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.custom-file-upload:hover,
.custom-file-upload:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
}

.custom-file-upload span {
    font-size: 14px;
}

.theme-accent {
    color: #1d4ed8 !important;
}

.btn-outline-theme {
    border: 2px solid #1d4ed8;
    color: #1d4ed8;
    background: transparent;
    border-radius: 999px;
    transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.btn-outline-theme:hover,
.btn-outline-theme:focus {
    background: #1d4ed8;
    color: #fff;
    box-shadow: 0 8px 16px rgba(30, 64, 175, 0.2);
}

.theme-link {
    color: #1d4ed8 !important;
}

.theme-link:hover {
    color: #1e3a8a !important;
    text-decoration: underline;
}

/* Success Card */
.success-card {
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* Checkbox */
.form-check-input {
    width: 20px;
    height: 20px;
    margin-top: 0;
    margin-right: 10px;
}

.form-check-label {
    padding-left: 10px;
    padding-top: 2px;
}

/* Animations */
.step-section {
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

/* --- New Styles for Result Page --- */

/* Glassmorphism Card */
#participantInfoFieldset.participant-section-error {
    border-color: rgba(248, 113, 113, 0.9);
    box-shadow: 0 0 0 3px rgba(248, 113, 113, 0.2);
    background: rgba(254, 242, 242, 0.6);
}

#participantInfoFieldset.participant-section-error legend {
    color: #b91c1c;
}

#phoneHelperText.phone-helper-error {
    color: #b91c1c !important;
}

.glass-card {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
}

/* Animated Checkmark */
.checkmark-circle {
    width: 80px;
    height: 80px;
    position: relative;
    display: inline-block;
    vertical-align: top;
    margin: 0 auto;
}

.checkmark-circle .background {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: #28a745;
    position: absolute;
    animation: scaleIn 0.6s ease-in-out forwards;
}

.checkmark-circle .checkmark {
    border-radius: 5px;
}

.checkmark-circle .checkmark.draw:after {
    animation-delay: 0.2s;
    animation-duration: 0.4s;
    animation-timing-function: ease;
    animation-name: checkmark;
    transform: scaleX(-1) rotate(135deg);
    animation-fill-mode: forwards;
}

.checkmark-circle .checkmark:after {
    opacity: 1;
    height: 40px;
    width: 20px;
    transform-origin: left top;
    border-right: 4px solid white;
    border-top: 4px solid white;
    content: '';
    left: 20px;
    top: 40px;
    position: absolute;
    display: block;
}

@keyframes checkmark {
    0% {
        height: 0;
        width: 0;
        opacity: 1;
    }

    20% {
        height: 0;
        width: 20px;
        opacity: 1;
    }

    40% {
        height: 40px;
        width: 20px;
        opacity: 1;
    }

    100% {
        height: 40px;
        width: 20px;
        opacity: 1;
    }
}

@keyframes scaleIn {
    0% {
        transform: scale(0);
        opacity: 0;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Brush Stroke Background */
.brush-bg {
    position: relative;
    display: inline-block;
    padding: 10px 30px;
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    border-radius: 255px 15px 225px 15px / 15px 225px 15px 255px;
    box-shadow: 2px 5px 10px rgba(0, 0, 0, 0.1);
    transform: rotate(-2deg);
}

/* Bubbles */
.bubble {
    position: absolute;
    bottom: -50px;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    animation: rise 4s infinite ease-in;
    z-index: 1;
}

@keyframes rise {
    0% {
        bottom: -50px;
        transform: translateX(0);
        opacity: 0;
    }

    20% {
        opacity: 1;
    }

    100% {
        bottom: 120%;
        transform: translateX(-20px);
        opacity: 0;
    }
}

/* Sparkles */
.sparkle {
    position: absolute;
    width: 20px;
    height: 20px;
    background: radial-gradient(circle, #fff 10%, transparent 70%);
    border-radius: 50%;
    animation: twinkle 1.5s infinite ease-in-out;
    opacity: 0;
}

@keyframes twinkle {

    0%,
    100% {
        opacity: 0;
        transform: scale(0.5);
    }

    50% {
        opacity: 1;
        transform: scale(1.2);
    }
}

/* Scratch Card Styles */
#scratch-container {
    background-color: #fff;
    /* Fallback */
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.1);
}

#scratch-canvas {
    z-index: 10;
}

.liquid-drop {
    width: 8px;
    height: 10px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    pointer-events: none;
    z-index: 15;
    animation: drop 0.5s linear forwards;
    position: absolute;

}

@keyframes drop {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    100% {
        transform: scale(2);
        opacity: 0;
    }
}

#cleaner-bottle.grabbing {
    cursor: grabbing;
    transform: scale(1.1) rotate(-15deg);
}

#cleaner-bottle {
    touch-action: none;
}

/* Red/Pink Theme Overrides */
body .campaign-wrapper {
    background: linear-gradient(135deg, #fff1f2 0%, #fce7f3 100%);
}

.theme-accent {
    color: #D95662 !important;
}

.btn-custom {
    background: linear-gradient(to bottom, #E27E88, #D95662);
}

.btn-custom:hover {
    background: linear-gradient(to bottom, #eca3ab, #c44d58);
}

.landing-card .product-badge {
    color: #D95662;
    background: rgba(217, 86, 98, 0.12);
}

.landing-card .btn-outline-light {
    color: #D95662;
    border-color: #D95662;
}

.landing-card .btn-outline-light:hover {
    background: #D95662;
    color: #fff;
}

.custom-input:focus {
    border-color: #E27E88;
    box-shadow: 0 0 0 3px rgba(226, 126, 136, 0.2);
}

.shop-name,
.slip-number {
    border-color: #E27E88;
}

.btn-outline-theme {
    border-color: #D95662;
    color: #D95662;
}

.btn-outline-theme:hover,
.btn-outline-theme:focus {
    background: #FFE4E6;
    /* Light Pink instead of solid Red */
    color: #D95662;
    /* Keep text Red */
    box-shadow: 0 8px 16px rgba(217, 86, 98, 0.2);
    border-color: #D95662;
}

.theme-link {
    color: #D95662 !important;
}

legend {
    color: #D95662;
}

/* Landing Page Redesign */
.campaign-bg-wrapper {
    background: url('../img/bg/bg_mobile.png') no-repeat center top;
    background-size: cover;
    min-height: 100vh;
    width: 100%;
    position: relative;
    padding-bottom: 80px;
}

.main-headline {
    max-width: 90%;
    margin-top: 10px;
    margin-bottom: -10px;
    position: relative;
    z-index: 2;
    transition: all 0.3s ease;
}

.presenter-wrapper {
    position: relative;
    margin-top: -20px;
    z-index: 1;
    margin-bottom: -30px;
    transition: all 0.3s ease;
}

.presenter-image {
    max-width: 95%;
    transition: all 0.3s ease;
}

.inline-form-container {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background: white;
    border-top-left-radius: 30px;
    border-top-right-radius: 30px;
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.15);
    padding-bottom: 20px;
}

.form-card-body {
    padding: 30px 25px;
}

.form-title {
    color: #D95662;
    font-weight: 600;
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.custom-input-landing {
    border: 2px solid #D95662;
    color: #D95662;
    font-size: 1.1rem;
    height: 50px;
    border-radius: 25px;
    padding-right: 40px;
}

.custom-input-landing::placeholder {
    color: #ffaebb;
}

.input-clear-btn {
    position: absolute;
    right: 15px;
    top: 12px;
    color: #D95662;
    font-size: 1.2rem;
    cursor: pointer;
    display: none;
}

.btn-landing-submit,
.btn-outline-theme {
    font-size: 1.2rem;
    padding: 12px 0;
    border-radius: 50rem;
    transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Register Button: Dark Red Start */
.btn-landing-submit {
    background: #BE303E;
    /* Solid Dark Red like reference */
    color: white;
    border: none;
    box-shadow: 0 5px 15px rgba(190, 48, 62, 0.4);
}

.btn-landing-submit:hover {
    background: #D95662;
    /* Lighter/Brighter on hover */
    color: white;
    transform: scale(1.05) translateY(-3px);
}

/* Join Button: Outline Default */
.btn-outline-theme {
    background: white;
    color: #BE303E;
    border: 2px solid #BE303E !important;
}

/* Join Button Hover: Become Solid Red like Register */
.btn-outline-theme:hover,
.btn-outline-theme:focus {
    background: #BE303E;
    color: #e07979;
    border-color: #BE303E;
    box-shadow: 0 8px 16px rgba(190, 48, 62, 0.2);
    transform: scale(1.05) translateY(-3px);
}

.theme-link-landing {
    color: #BE303E;
    font-weight: bold;
    text-decoration: underline;
}

/* Specific styling for the main action buttons on Landing Page */
#btnRegister,
#btnJoin,
#btnCheckRights {
    padding: 15px 30px !important;
    font-size: 0.8rem !important;
    min-width: 220px;
    letter-spacing: 0.5px;
    font-weight: 600;
    border-width: 2px;
}

@media (min-width: 900px) {

    #btnRegister,
    #btnJoin,
    #btnCheckRights {
        min-width: 320px;
        font-size: 1.8rem !important;
        padding: 25px 50px !important;
    }
}

@media (min-width: 768px) {
    .campaign-bg-wrapper {
        background: url('../img/bg/hero-bg.png') no-repeat center top fixed;
        background-size: cover;
    }

    .inline-form-container {
        position: relative;
        max-width: 500px;
        margin: 0 auto;
        border-radius: 20px;
        bottom: auto;
        margin-top: -50px;
    }

    /* Adjust image size on larger screens as requested */
    .main-headline {
        max-width: 1200px;
        width: 100%;
    }

    .presenter-image {
        max-width: 700px;
        /* Increased to approx Blue Box width */
        width: 100%;
    }

    .presenter-wrapper {
        margin-top: -60px;
        /* Overlap slightly more due to larger size */
        margin-bottom: 30px;
    }

    .visuals-container {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        margin-bottom: 20px;
    }
}

/* ========================================
   Step 3 Form Styling - Product Info
   ======================================== */

/* Form Labels */
#step3Form .form-group>label {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    letter-spacing: 0.3px;
}

#step3Form .form-group>label.text-danger {
    color: #D95662 !important;
}

/* Form Group Spacing */
#step3Form .form-group {
    margin-bottom: 14px;
}

/* Select Dropdown Styling */
#step3Form select.custom-input {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23D95662' d='M6 8.5L1 3.5h10L6 8.5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-color: #fff;
    padding-right: 40px;
    cursor: pointer;
    font-size: 14px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
}

#step3Form select.custom-input option {
    font-size: 13px;
    padding: 6px 10px;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

#step3Form select.custom-input:focus {
    border-color: #D95662;
    box-shadow: 0 0 0 3px rgba(217, 86, 98, 0.15);
}

/* Input Focus State */
#step3Form .custom-input:focus {
    border-color: #D95662;
    box-shadow: 0 0 0 3px rgba(217, 86, 98, 0.15);
}

/* Custom File Upload Box */
.custom-file-upload-box {
    display: flex;
    align-items: center;
    gap: 10px;
}

.custom-file-upload-box .form-control {
    flex: 1;
    background-color: #fff;
    cursor: pointer;
    font-size: 13px;
    color: #888;
    border: 2px solid #e5e7f0;
    border-radius: 10px;
    height: 44px;
}

.custom-file-upload-box .btn-upload {
    width: 44px;
    height: 44px;
    min-width: 44px;
    border-radius: 10px;
    background-color: #E27E88;
    color: #fff;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: all 0.2s ease;
    box-shadow: 0 3px 8px rgba(217, 86, 98, 0.25);
}

.custom-file-upload-box .btn-upload:hover {
    background-color: #BE303E;
    transform: translateY(-1px);
    box-shadow: 0 5px 12px rgba(190, 48, 62, 0.3);
}

/* Step 3 Buttons */
#step3Form .btn-landing-submit {
    background-color: #BE303E;
    border: none;
    font-weight: 600;
    padding: 12px 24px;
    font-size: 14px;
}

#step3Form .btn-landing-submit:hover {
    background-color: #a0252f;
}

/* Section Title */
#step3-section .section-title {
    font-size: 1.4rem;
    margin-bottom: 8px;
}

/* Option Group Headers (for optgroup in future) */
#productModel option:first-child {
    color: #999;
}

/* Better placeholder color for selects */
#step3Form select.custom-input option[value=""][disabled] {
    color: #aaa;
}

/* Responsive adjustments */
@media (max-width: 576px) {
    #step3Form .form-group>label {
        font-size: 12px;
    }

    .custom-file-upload-box .form-control {
        font-size: 12px;
        height: 42px;
    }

    .custom-file-upload-box .btn-upload {
        width: 42px;
        height: 42px;
        min-width: 42px;
    }

    #step3-section .section-title {
        font-size: 1.2rem;
    }
}

/* ========================================
   Select2 Custom Styling
   ======================================== */

/* Select2 Container */
#step3Form .select2-container {
    width: 100% !important;
}

#step3Form .select2-container--default .select2-selection--single {
    height: 44px;
    border: 2px solid #e5e7f0;
    border-radius: 10px;
    background-color: #fff;
    padding: 6px 12px;
    font-size: 14px;
}

#step3Form .select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 28px;
    color: #555;
    padding-left: 0;
}

#step3Form .select2-container--default .select2-selection--single .select2-selection__placeholder {
    color: #999;
}

#step3Form .select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 42px;
    right: 8px;
}

#step3Form .select2-container--default .select2-selection--single .select2-selection__arrow b {
    border-color: #D95662 transparent transparent transparent;
}

#step3Form .select2-container--default.select2-container--open .select2-selection--single .select2-selection__arrow b {
    border-color: transparent transparent #D95662 transparent;
}

/* Focus State */
#step3Form .select2-container--default.select2-container--focus .select2-selection--single,
#step3Form .select2-container--default.select2-container--open .select2-selection--single {
    border-color: #D95662;
    box-shadow: 0 0 0 3px rgba(217, 86, 98, 0.15);
}

/* Dropdown */
.select2-container--default .select2-dropdown {
    border: 2px solid #D95662;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    overflow: hidden;
}

.select2-container--default .select2-results__option {
    padding: 10px 14px;
    font-size: 14px;
}

.select2-container--default .select2-results__option--highlighted[aria-selected] {
    background-color: #D95662;
    color: #fff;
}

.select2-container--default .select2-results__option[aria-selected="true"] {
    background-color: #fde8ea;
    color: #D95662;
}

/* Search Box in Dropdown */
.select2-container--default .select2-search--dropdown .select2-search__field {
    border: 2px solid #e5e7f0;
    border-radius: 8px;
    padding: 8px 10px;
}

.select2-container--default .select2-search--dropdown .select2-search__field:focus {
    border-color: #D95662;
    outline: none;
}

/* Mobile adjustments */
@media (max-width: 576px) {
    #step3Form .select2-container--default .select2-selection--single {
        height: 42px;
        font-size: 13px;
    }

    #step3Form .select2-container--default .select2-selection--single .select2-selection__rendered {
        line-height: 26px;
    }

    #step3Form .select2-container--default .select2-selection--single .select2-selection__arrow {
        height: 38px;
    }

    .select2-container--default .select2-results__option {
        padding: 8px 12px;
        font-size: 13px;
    }
}

/* Select2 Group Header (Series Styling) */
.select2-container--default .select2-results__group {
    padding: 8px 12px;
    font-weight: 700;
    color: #1a237e;
    background-color: #f5f7fa;
    display: block;
    cursor: default;
    font-size: 13px;
    border-top: 1px solid #eee;
    margin-top: 4px;
}

.select2-container--default .select2-results__option .select2-results__group {
    padding-left: 0;
}

/* Indent options under a group */
.select2-container--default .select2-results__option .select2-results__option {
    padding-left: 24px;
}

/* Presenter Image Sizing */
.presenter-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Small Mobile (up to 375px) */
.presenter-image {
    max-height: 40vh;
    width: auto;
    object-fit: contain;
}

/* Larger Mobile (376px - 767px) */
@media (min-width: 376px) and (max-width: 767px) {
    .presenter-image {
        max-height: 38vh;
    }
}

/* Tablet (768px - 1023px) */
@media (min-width: 768px) and (max-width: 1023px) {
    .presenter-image {
        max-height: 50vh;
    }
}

/* Desktop (1024px+) - full size */
@media (min-width: 1024px) {
    .presenter-image {
        max-height: none;
    }
}

/* ========== Landing Page Animations ========== */

/* Section 1: Floating Cloud Animation for Main Headline */
@keyframes floatUpDown {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-25px);
    }
}

.main-headline {
    /* First fade in (1.5s), then start floating (with 1.5s delay) */
    animation:
        fadeInUp 1.5s ease-out forwards,
        floatUpDown 4s ease-in-out 1.5s infinite;
    opacity: 0;
}

/* Section 2: Presenter Fade In + Slide Up on Load */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

.presenter-wrapper {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0s, transform 0s;
}

.presenter-wrapper.animate {
    animation: fadeInUp 1.5s ease-out forwards;
}

/* Section 3: Buttons Fade In on Load */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

#btnRegister {
    opacity: 0;
    transform: translateY(20px);
}

#btnRegister.animate {
    animation: fadeIn 1.2s ease-out forwards;
}

#btnJoin {
    opacity: 0;
    transform: translateY(20px);
}

#btnJoin.animate {
    animation: fadeIn 1.2s ease-out forwards;
    animation-delay: 0.3s;
}

/* ========== Small Mobile Responsive (≤375px) - Global Scale ========== */
@media (max-width: 375px) {
    .campaign-bg-wrapper {
        /* Removed scaling that broke layout */
        width: 100%;
        height: auto;
        min-height: 100vh;
    }

    /* Ensure modal still looks okay */

    /* Specific Button Overrides for Small Mobile */
    #btnRegister,
    #btnJoin,
    #btnCheckRights {
        font-size: 0.8em !important;
        padding: 8px 20px !important;
        /* Reduce from px-5 py-3 */
        min-width: 140px !important;
        /* Reduce from 200px */
        width: auto !important;
        display: block !important;
        margin: 0 auto !important;
    }
}

/* --- Navigation Menu Styles --- */

/* Desktop Navigation */
.desktop-nav {
    gap: 30px;
}

.nav-link-custom {
    color: white !important;
    /* Force white text */
    font-weight: 500;
    font-size: 1.1rem;
    text-decoration: none !important;
    padding: 8px 16px;
    border-radius: 20px;
    transition: all 0.3s ease;
    background: transparent;
    /* No background as requested */
}

.nav-link-custom:hover {
    color: rgba(228, 51, 51, 0.8) !important;
    transform: translateY(-2px);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 2000;
    display: flex;
    justify-content: flex-end;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu-content {
    width: 300px;
    /* Adjust width as needed */
    height: 100%;
    background-color: white;
    padding: 20px;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.2);
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
    display: flex;
    flex-direction: column;
    position: relative;
}

.mobile-menu-overlay.active .mobile-menu-content {
    transform: translateX(0);
}

.mobile-menu-close {
    align-self: flex-end;
    background: none;
    border: none;
    font-size: 2rem;
    color: #D95662;
    cursor: pointer;
    margin-bottom: 20px;
}

.mobile-nav {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.mobile-nav-link {
    font-size: 1.2rem;
    color: #333;
    text-decoration: none !important;
    padding: 10px 15px;
    border-radius: 8px;
    transition: background-color 0.2s ease, color 0.2s ease;
    font-weight: 500;
}

.mobile-nav-link:hover {
    background-color: rgba(217, 86, 98, 0.1);
    color: #D95662;
}

/* ========================================= */
/* SHARED VISUALS & PRESENTER STYLES (INDEX COMPATIBILITY) */
/* ========================================= */
.visuals-container {
    padding: 0 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.main-headline {
    max-width: 90% !important;
    height: auto !important;
    margin-bottom: 10px;
}

.presenter-wrapper {
    width: 100%;
    max-width: 450px;
    margin: 0 auto;
    /* Add fade-in animation matching index page */
    animation: fade-in-up-presenter 1s ease-out forwards;
    opacity: 0;
    transform: translateY(20px);
}

.presenter-image {
    width: 100%;
    height: auto;
    object-fit: contain;
}

@keyframes fade-in-up-presenter {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================= */
/* INPUT FOCUS STYLES OVERRIDE */
/* ========================================= */

/* Normal Focus - Change from Blue to Theme Color */
.form-control:focus,
.custom-select:focus,
.custom-input:focus,
.custom-input-landing:focus {
    border-color: #D95662 !important;
    box-shadow: 0 0 0 0.2rem rgba(217, 86, 98, 0.25) !important;
    outline: none !important;
}

/* Invalid / Error State Focus - Red */
.form-control.is-invalid:focus,
.was-validated .form-control:invalid:focus,
.custom-input.is-invalid:focus,
.custom-input-landing.is-invalid:focus {
    border-color: #dc3545 !important;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25) !important;
}

/* Ensure border is red even without focus if invalid */
.form-control.is-invalid,
.custom-input.is-invalid,
.custom-input-landing.is-invalid {
    border-color: #dc3545 !important;
}

.focus-error {
    border-color: #D95662 !important;
    box-shadow: 0 0 0 0.25rem rgba(217, 86, 98, 0.35) !important;
}

/* ========================================= */
/* MODAL BUTTON STYLES (EQUAL SIZE) */
/* ========================================= */
.btn-modal-action {
    flex: 1;
    /* Stretch properly */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin: 0 5px;
    /* Spacing between buttons since BS4 no gap */
}

/* Mobile Screen - Match Index Button Font Size */
@media (max-width: 575.98px) {
    .btn-modal-action {
        font-size: 0.8rem !important;
        /* Match index button */
        padding: 10px 5px !important;
    }
}

/* ========================================= */
/* FLATPICKR INPUT STYLE FIX (WHITE BACKGROUND) */
/* ========================================= */
.flatpickr-input[readonly],
.custom-input[readonly] {
    background-color: #ffffff !important;
    cursor: pointer;
}

/* ========================================= */
/* COMPACT SWEETALERT2 STYLES */
/* ========================================= */
div:where(.swal2-container) .swal2-popup {
    font-size: 0.9em !important;
    width: 280px !important;
    padding: 1rem !important;
    border-radius: 1rem !important;
}

div:where(.swal2-container) .swal2-title {
    font-size: 1.2rem !important;
    padding: 0.5em 1em 0 !important;
}

div:where(.swal2-container) .swal2-html-container {
    font-size: 0.9rem !important;
    margin: 0.5em 1em 0.2em !important;
}

div:where(.swal2-container) .swal2-icon {
    width: 3.5em !important;
    height: 3.5em !important;
    margin: 1em auto 0.5em !important;
    border-width: 3px !important;
    /* Thinner border for icons */
}

/* Adjust inner icon content (like the 'x', '!', checkmark) */
div:where(.swal2-container) .swal2-icon .swal2-icon-content {
    font-size: 2.5em !important;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Specifically target Success/Error/Warning icons line sizes via pseudo elements if possible,
   but reducing container size usually works well enough. */

div:where(.swal2-container) .swal2-actions {
    margin-top: 1rem !important;
}

div:where(.swal2-container) .swal2-styled.swal2-confirm {
    font-size: 0.9rem !important;
    padding: 0.5em 2em !important;
    border-radius: 50px !important;
    /* Rounded pill style to match theme */
}

/* Slightly larger on bigger screens but still compact */
@media (min-width: 576px) {
    div:where(.swal2-container) .swal2-popup {
        width: 350px !important;
    }
}

/* ========================================= */
/* FIX NATIVE VALIDATION SCROLL & BUBBLE */
/* ========================================= */

.custom-file-upload-box {
    position: relative !important;
}

/* Make hidden file input cover the container so validation bubble points correctly */
/* and scroll focus lands on the visible element, preventing jumps */
.custom-file-upload-box input[type="file"] {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    opacity: 0 !important;
    z-index: 0 !important;
    /* sits just below content if needed, or 0 to be clickable if not using custom button */
    pointer-events: none !important;
    /* let clicks pass through to custom button logic if any */
    display: block !important;
}

/* Fix Select2 Validation Bubble Position */
select.select2-hidden-accessible {
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}