@font-face {
    font-family: "Red Rose Bold";
    src: url(../font/static/RedRose-Bold.ttf) format("truetype");
    font-style: normal;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Red Rose Bold', sans-serif;
    background-color: #1a1a2e;
    color: #ffffff;
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
}

/* Loader Styles */
.loader-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 9999;
    justify-content: center;
    align-items: center;
}

.loader-overlay.active {
    display: flex;
}

.loader-spinner {
    width: 60px;
    height: 60px;
    border: 6px solid #f3f3f3;
    border-top: 6px solid #d4af37;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Black full-screen overlay */
.thanks-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

/* Transparent box */
.thanks-box {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 24px 20px;
    border-radius: 12px;
    max-width: 90%;
    width: 320px;
    text-align: center;
    color: #fff;
}

.thanks-box p {
    font-size: 15px;
    line-height: 1.5;
    margin-bottom: 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Hero Section */
.hero-section {
    position: relative;
    text-align: center;
    overflow: hidden;
    margin-bottom: -5px;
}

.hero-section img {
    width: 100%;
    height: 100%;
}

/* Form Section */
.form-section {
    background: linear-gradient(
        to bottom,
        #860101 0%,
        #860101 15%,
        #d60000 50%,
        #d60000 85%,
        #d60000 100%
    );
    padding: 50px 10px;
}

.section-title {
    text-align: center;
    font-size: 42px;
    font-weight: 900;
    letter-spacing: 8px;
    margin-bottom: 30px;
    color: #ffffff;
}

/* Fieldset Styling */
.form-fieldset {
    border: 3px solid #FFBB5C;
    border-radius: 0;
    padding: 0;
    margin: 0;
    position: relative;
}

.fieldset-legend {
    text-align: center;
    font-size: 30px;
    font-weight: 900;
    letter-spacing: 8px;
    color: #ffffff;
    padding: 0 60px;
    background-color: transparent;
}

.form-container {
    padding: 30px 25px;
    background-color: transparent;
    margin-bottom: 20px;
}

/* Question Box */
.question-box {
    margin-bottom: 35px;
}

.question-title {
    font-size: 14px;
    font-weight: bold;
    text-align: center;
    margin-bottom: 25px;
    color: #FFBB5C;
    letter-spacing: 0.5px;
    line-height: 1.5;
}

.options-group {
    display: flex;
    justify-content: space-evenly;
    gap: 5px;
    flex-wrap: wrap;
}

.radio-option {
    min-width: 60px;
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 0px;
}

/* 🔲 Square Radio Button */
.radio-option input[type="radio"] {
    width: 12px;
    height: 12px;
    margin-right: 5px;
    cursor: pointer;
    flex-shrink: 0;

    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;

    background: white;
    border-radius: 0;
}

.radio-option input[type="radio"]:checked {
    background-color: #FFBB5C;
}

.radio-label {
    font-size: 10px;
    font-weight: bold;
    color: #ffffff;
    letter-spacing: 0.5px;
}

/* Form Instruction */
.form-instruction {
    text-align: center;
    font-size: 14px;
    font-weight: bold;
    margin: -10px 0 15px;
    letter-spacing: 1px;
}

/* Form Styles */
.form-group {
    margin-bottom: 10px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.form-input {
    width: 100%;
    padding: 14px 16px;
    background-color: #0a1e3d;
    border: 2px solid transparent;
    border-radius: 5px;
    color: #FFBB5C;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.form-input::placeholder {
    color: #FFBB5C;
    font-weight: 600;
}

.form-input:focus {
    outline: none;
    border-color: #d4af37;
    background-color: #0d2547;
}

.form-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
    font-weight: 500;
}

/* Select Dropdown Styles */
.form-select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FFBB5C' stroke-width='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 12px center;
    background-size: 16px;
    padding-right: 40px;
    cursor: pointer;
}

.form-select:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.form-select option {
    background-color: #0a1e3d;
    color: #FFBB5C;
    padding: 10px;
}

.form-select option:first-child {
    color: #FFBB5C;
}

.mandatory-note {
    font-size: 8px;
    color: #ffffff;
    margin-bottom: 15px;
    letter-spacing: 0.5px;
}

/* Checkbox Styles */
.checkbox-option {
    display: flex;
    align-items: flex-start;
    cursor: default;
    padding: 5px 0;
    position: relative;
}

/* small clickable box */
.checkbox-box {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    margin-right: 10px;
    position: relative;
    flex-shrink: 0;
}

.checkbox-box input {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    opacity: 0;
    cursor: pointer;
    z-index: 2;
}

.custom-checkbox {
    width: 18px;
    height: 18px;
    border: 2px solid #d4af37;
    background: transparent;
    margin-top: 2px;
    position: relative;
    flex-shrink: 0;
    display: inline-block;
    pointer-events: none;
}

.custom-checkbox::after {
    content: "";
    position: absolute;
    width: 5px;
    height: 10px;
    border: solid #d4af37;
    border-width: 0 2px 2px 0;
    top: -1px;
    left: 4px;
    transform: rotate(45deg);
    opacity: 0;
}

/* Link styling to match placeholder color */
.checkbox-option .tnc-link {
    color: #FFBB5C;
    text-decoration: underline;
    font-weight: 600;
    text-underline-offset: 2px;
}

.checkbox-option .tnc-link:hover {
    opacity: 0.95;
}

.video-box {
    width: 300px;
    height: 300px;
    margin: 20px auto;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background: #000;
}

.video-box video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Play button overlay */
.play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    font-size: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 2;
}

/* Skip button */
.skip-btn {
    display: block;
    margin: 12px auto 0;
    padding: 10px 26px;
    background-color: #1e5bff;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}


.checkbox-option input:checked + .custom-checkbox::after {
    opacity: 1;
}

.checkbox-label {
    font-size: 10px;
    line-height: 1.6;
    color: #ffffff;
    letter-spacing: 0.3px;
    user-select: none;
    cursor: default;
}

/* Error Messages */
.error-message {
    display: none;
    color: #FFBB5C;
    font-size: 9px;
    margin-top: 6px;
    min-height: 16px;
    font-weight: 600;
    margin-left: 8px;
    user-select: none;
}

.error-message:not(:empty) {
    display: block;
}

.form-input.error {
    border-color: #ff6b6b;
}

/* Submit Button */
.submit-btn {
    position: absolute;
    bottom: -25px;
    left: 50%;
    align-items: center;
    transform: translateX(-50%);
    display: block;
    margin: 35px auto 0;
    padding: 14px 30px;
    background-color: #0a1e3d;
    color: #FFBB5C;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 900;
    letter-spacing: 3px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-btn:hover {
    background-color: #0d2547;
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.3);
}

/* Footer */
.footer {
    background-color: #d60000;
    padding: 20px;
    text-align: right;
}

.powered-by {
    font-size: 8px;
    color: #ffffff;
    margin: 0;
    margin-right: 4px;
}

.powered-by strong {
    font-weight: bold;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        max-width: 500px;
    }

    .section-title {
        font-size: 32px;
        letter-spacing: 6px;
    }

    .fieldset-legend {
        font-size: 28px;
        letter-spacing: 6px;
        top: -50px;
    }

    .form-container {
        padding: 20px 20px;
    }

    .question-title {
        font-size: 12px;
    }

    .form-input {
        font-size: 12px;
        padding: 13px 15px;
    }

    .checkbox-label {
        font-size: 9px;
    }

    .submit-btn {
        padding: 13px 25px;
    }
}

@media (max-width: 480px) {
    .container {
        max-width: 100%;
    }

    .section-title {
        font-size: 28px;
        letter-spacing: 4px;
    }

    .fieldset-legend {
        font-size: 26px;
        letter-spacing: 4px;
        top: -45px;
        padding: 0 35px;
    }

    .form-fieldset {
        border-width: 2px;
    }

    .form-container {
        padding: 20px 15px;
    }

    .question-title {
        font-size: 10px;
    }

    .radio-label {
        font-size: 8px;
    }

    .form-instruction {
        font-size: 12px;
    }

    .checkbox-label {
        font-size: 8px;
    }

    .submit-btn {
        max-width: 100%;
    }
}