p {
    margin: 0px;
}

h1 {
    margin: 0px;
}

h2 {
    margin: 0px;
}

h3 {
    margin: 0px;
}

html, body {
    width: 100%;
    margin: 0px;
    padding: 0px;
    overflow-x: hidden;
}

.page-container {
    position: relative;
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 40px;
    padding-bottom: 40px;
    overflow-x: hidden;
    box-sizing: border-box;
}

.page-content {
    background-color: transparent;
    width: 60%;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    box-sizing: border-box;
}

.page-content * {
    transform-style: preserve-3d;
}

.page-wrapper {
    position: absolute;
    transform: translateZ(0px);
}

.page-size {
    width: 100%;
    height: 100%;
}

body {
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, rgb(42, 46, 75) 0%, rgb(42, 46, 75) 100%);
    min-height: 100vh;
    padding: 0px;
}

#bottomtext {
    font-size: 20px;
}

.form-container {
    background: rgba(173, 41, 143, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 30px;
    box-shadow: rgba(0, 0, 0, 0.1) 0px 20px 40px;
    width: 100%;
    margin: 0 auto;
    transition: width 0s ease 0s, height 0.3s ease 0s;
    box-sizing: border-box;
    overflow-x: hidden;
}

#userId {
    color: rgb(42, 46, 75);
    font-size: 8px;
}

.form-container:hover {
    transform: translateY(-5px);
    box-shadow: rgba(0, 0, 0, 0.15) 0px 25px 50px;
}

.header {
    text-align: center;
    margin-bottom: 30px;
}

.header h1 {
    color: rgb(51, 51, 51);
    font-size: 2.5em;
    margin-bottom: 10px;
    -webkit-text-fill-color: rgb(51, 51, 51);
}

.header p {
    color: rgb(255, 255, 255);
    font-size: 1em;
}

.identifier-info {
    background: rgba(102, 126, 234, 0.1);
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 15px;
    font-size: 0.9em;
}

.loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    color: rgb(255, 255, 255);
    font-size: 1.2em;
}

.spinner {
    width: 30px;
    height: 30px;
    border-width: 3px;
    border-style: solid;
    border-color: rgb(42, 46, 75) rgb(243, 243, 243) rgb(243, 243, 243);
    border-image: initial;
    border-radius: 50%;
    animation: 1s linear 0s infinite normal none running spin;
    margin-right: 15px;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.question {
    margin-bottom: 25px;
    padding: 10px;
    background: rgb(255, 255, 255);
    border-radius: 10px;
    border-left: 4px solid rgb(42, 46, 75);
    transition: width 0s ease 0s, height 0.3s ease 0s;
}

.question:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateX(5px);
}

.question-label {
    display: block;
    font-weight: 300;
    color: rgb(51, 51, 51);
    margin-bottom: 10px;
    font-size: 1em;
}

.question-input {
    width: 100%;
    max-width: 100%;
    padding: 15px;
    border: 2px solid rgb(225, 229, 233);
    border-radius: 10px;
    font-size: 1em;
    transition: width 0s ease 0s, height 0.3s ease 0s;
    background: white;
    box-sizing: border-box;
}

.question-input:focus {
    outline: none;
    border-color: rgb(102, 126, 234);
    box-shadow: rgba(102, 126, 234, 0.1) 0px 0px 0px 3px;
    transform: translateY(-2px);
}

.question-input[type="radio"], .question-input[type="checkbox"] {
    width: auto;
    margin-right: 10px;
    transform: scale(1.2);
}

.radio-group, .checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.radio-option, .checkbox-option {
    display: flex;
    align-items: center;
    padding: 10px;
    background: white;
    border-radius: 8px;
    transition: width 0s ease 0s, height 0.3s ease 0s;
    cursor: pointer;
}

.radio-option:hover, .checkbox-option:hover {
    background: rgba(102, 126, 234, 0.05);
    transform: translateX(5px);
}

.terms-section {
    background: rgb(255, 255, 255);
    padding: 10px;
    border-radius: 10px;
    border: 2px solid rgb(225, 229, 233);
    margin: 10px 0px;
    transition: width 0s ease 0s, height 0.3s ease 0s;
}

.terms-section:hover {
    border-color: rgb(102, 126, 234);
    background: rgba(255, 255, 255, 0.9);
}

.terms-checkbox-container {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    font-size: 0.95em;
    line-height: 1.5;
    position: relative;
    padding-left: 35px;
}

.terms-checkbox {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0px;
}

.checkmark {
    position: absolute;
    top: 2px;
    left: 0px;
    height: 20px;
    width: 20px;
    background-color: white;
    border: 2px solid rgb(221, 221, 221);
    border-radius: 4px;
    transition: width 0s ease 0s, height 0.3s ease 0s;
}

.terms-checkbox-container:hover .checkmark {
    border-color: rgb(102, 126, 234);
    transform: scale(1.05);
}

.terms-checkbox:checked ~ .checkmark {
    background-color: rgb(102, 126, 234);
    border-color: rgb(102, 126, 234);
}

.checkmark::after {
    content: "";
    position: absolute;
    display: none;
}

.terms-checkbox:checked ~ .checkmark::after {
    display: block;
}

.terms-checkbox-container .checkmark::after {
    left: 4px;
    top: 0px;
    width: 6px;
    height: 10px;
    border-style: solid;
    border-color: white;
    border-image: initial;
    border-width: 0px 2px 2px 0px;
    transform: rotate(45deg);
}

.terms-text {
    color: rgb(42, 46, 75);
    user-select: none;
}

.terms-link {
    color: rgb(173, 41, 143);
    text-decoration: none;
    font-weight: 600;
    transition: width 0s ease 0s, height 0.3s ease 0s;
    border-bottom: 1px solid transparent;
}

.terms-link:hover {
    color: rgb(118, 75, 162);
    border-bottom-color: rgb(118, 75, 162);
    transform: translateY(-1px);
}

.submit-section {
    text-align: center;
    margin-top: 30px;
    padding-top: 30px;
    border-top: 2px solid rgb(240, 240, 240);
}

.submit-btn {
    background: linear-gradient(135deg, rgb(42, 46, 75), rgb(42, 46, 75));
    color: white;
    border: none;
    padding: 15px 40px;
    font-size: 1.1em;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: width 0s ease 0s, height 0.3s ease 0s;
    box-shadow: rgba(102, 126, 234, 0.3) 0px 10px 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.submit-btn:active {
    transform: translateY(-1px);
}

.submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.error {
    background: rgb(255, 107, 107);
    color: white;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 20px;
    text-align: center;
    animation: 0.5s ease-in-out 0s 1 normal none running shake;
}

.success {
    background: rgb(81, 207, 102);
    color: white;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 20px;
    text-align: center;
    animation: 0.5s ease-in-out 0s 1 normal none running fadeIn;
}

@keyframes shake {
    0%, 100% {
        transform: translateX(0px);
    }
    25% {
        transform: translateX(-5px);
    }
    75% {
        transform: translateX(5px);
    }
}

@keyframes modal_gwd-keyframes {
    0% {
        opacity: 0;
        transform: translateY(-10px);
    }
    100% {
        opacity: 1;
        transform: translateY(0px);
    }
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0px;
    top: 0px;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 30px;
    border-radius: 20px;
    width: 80%;
    max-width: 800px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: rgba(0, 0, 0, 0.3) 0px 20px 40px;
    animation: 0.3s ease 0s 1 normal none running slideIn;
}

@keyframes slideIn {
    0% {
        transform: translateY(-50px);
        opacity: 0;
    }
    100% {
        transform: translateY(0px);
        opacity: 1;
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid rgb(240, 240, 240);
}

.modal-title {
    color: rgb(51, 51, 51);
    font-size: 1.5em;
    font-weight: 600;
}

.close {
    color: rgb(170, 170, 170);
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: width 0s ease 0s, height 0.3s ease 0s;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close:hover {
    color: rgb(102, 126, 234);
    background: rgba(102, 126, 234, 0.1);
    transform: rotate(90deg);
}

.modal-body {
    color: rgb(85, 85, 85);
    line-height: 1.6;
}

.modal-body h3 {
    color: rgb(51, 51, 51);
    margin: 20px 0px 10px;
    font-size: 1.2em;
}

.modal-body h4 {
    color: rgb(51, 51, 51);
    margin: 15px 0px 8px;
    font-size: 1.1em;
}

.modal-body p {
    margin-bottom: 15px;
}

.thank-you-container {
    text-align: center;
    padding: 40px 20px;
    animation: 0.6s ease-in-out 0s 1 normal none running fadeIn;
}

.thank-you-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, rgb(81, 207, 102), rgb(64, 192, 87));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0px auto 25px;
    animation: 0.8s ease-out 0s 1 normal none running bounceIn;
    box-shadow: rgba(81, 207, 102, 0.3) 0px 10px 30px;
}

.thank-you-icon::after {
    content: "✓";
    color: white;
    font-size: 40px;
    font-weight: bold;
}

.thank-you-title {
    color: rgb(255, 255, 255);
    font-size: 2.5em;
    margin-bottom: 15px;
    -webkit-text-fill-color: rgb(255, 255, 255);
    font-weight: 700;
}

.thank-you-message {
    color: rgb(255, 255, 255);
    font-size: 1.2em;
    line-height: 1.6;
    margin-bottom: 30px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.banners-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    margin: 0 auto;
}

.proceed-link {
    display: inline-block;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 15px;
    overflow: hidden;
    flex: 0 1 auto;
}

.proceed-link:hover {
    transform: translateY(-5px);
    box-shadow: rgba(0, 0, 0, 0.3) 0px 10px 30px;
}

.proceed-banner {
    width: auto;
    max-width: 300px;
    height: 80px;
    display: block;
    object-fit: contain;
}

.logo {
    width: 180px;
    max-width: 100%;
    height: auto;
}

@keyframes bounceIn {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes fadeIn {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

/* Responsive Design - Media Queries */

/* Tablets (portrait and landscape) */
@media only screen and (max-width: 1024px) {
    .page-content {
        width: 80%;
    }

    .form-container {
        padding: 25px;
    }

    .header h1 {
        font-size: 2em;
    }

    .logo {
        width: 200px;
    }
}

/* Tablets (portrait) and large phones */
@media only screen and (max-width: 768px) {
    .page-container {
        padding: 15px;
    }

    .page-content {
        width: 100%;
        padding: 0px;
    }

    .form-container {
        padding: 20px;
        margin: 0;
    }

    .header {
        margin-bottom: 20px;
    }

    .header h1 {
        font-size: 1.8em;
    }

    .header p {
        font-size: 0.95em;
    }

    .logo {
        width: 150px;
    }

    .question {
        padding: 15px;
        margin-bottom: 20px;
    }

    .question-input {
        width: 100%;
        padding: 12px;
        font-size: 16px; /* Prevents zoom on iOS */
    }

    .question-label {
        font-size: 0.95em;
    }

    .modal-content {
        width: 90%;
        padding: 20px;
        margin: 10% auto;
    }

    .modal-title {
        font-size: 1.3em;
    }

    .modal-body {
        font-size: 0.9em;
    }

    .submit-btn {
        padding: 12px 30px;
        font-size: 1em;
    }

    .thank-you-title {
        font-size: 2em;
    }

    .thank-you-message {
        font-size: 1em;
    }

    .banners-container {
        gap: 15px;
    }

    .proceed-banner {
        max-width: 250px;
        height: 70px;
    }
}

/* Mobile phones */
@media only screen and (max-width: 480px) {
    .page-container {
        padding: 10px;
    }

    .page-content {
        width: 100%;
        padding: 0px;
    }

    .form-container {
        padding: 15px;
        border-radius: 15px;
        margin: 0;
    }

    .header {
        margin-bottom: 15px;
    }

    .header h1 {
        font-size: 1.5em;
    }

    .header p {
        font-size: 0.85em;
    }

    .logo {
        width: 120px;
    }

    .question {
        padding: 12px;
        margin-bottom: 15px;
    }

    .question-label {
        font-size: 0.9em;
        margin-bottom: 8px;
    }

    .question-input {
        width: 100%;
        padding: 10px;
        font-size: 16px;
    }

    .radio-option, .checkbox-option {
        padding: 8px;
        font-size: 0.9em;
    }

    .terms-section {
        padding: 12px;
    }

    .terms-checkbox-container {
        font-size: 0.85em;
        padding-left: 30px;
    }

    .checkmark {
        height: 18px;
        width: 18px;
    }

    .submit-section {
        margin-top: 20px;
        padding-top: 20px;
    }

    .submit-btn {
        padding: 12px 25px;
        font-size: 0.95em;
        width: 100%;
    }

    .modal-content {
        width: 95%;
        padding: 15px;
        margin: 15% auto;
        max-height: 85vh;
    }

    .modal-title {
        font-size: 1.2em;
    }

    .modal-body {
        font-size: 0.85em;
    }

    .modal-body h3 {
        font-size: 1.1em;
        margin: 15px 0px 8px;
    }

    .modal-body h4 {
        font-size: 1em;
        margin: 12px 0px 6px;
    }

    .close {
        font-size: 24px;
        width: 30px;
        height: 30px;
    }

    .loading {
        padding: 30px;
        font-size: 1em;
    }

    .spinner {
        width: 25px;
        height: 25px;
        margin-right: 10px;
    }

    .thank-you-container {
        padding: 30px 15px;
    }

    .thank-you-icon {
        width: 60px;
        height: 60px;
        margin-bottom: 20px;
    }

    .thank-you-icon::after {
        font-size: 30px;
    }

    .thank-you-title {
        font-size: 1.6em;
        margin-bottom: 12px;
    }

    .thank-you-message {
        font-size: 0.9em;
        margin-bottom: 20px;
    }

    .banners-container {
        gap: 10px;
        flex-direction: column;
    }

    .proceed-banner {
        max-width: 200px;
        height: 60px;
    }

    #userId {
        font-size: 7px;
    }
}

/* Extra small mobile phones */
@media only screen and (max-width: 360px) {
    .page-container {
        padding: 8px;
    }

    .form-container {
        padding: 12px;
    }

    .header h1 {
        font-size: 1.3em;
    }

    .logo {
        width: 100px;
    }

    .question {
        padding: 10px;
    }

    .submit-btn {
        padding: 10px 20px;
        font-size: 0.9em;
    }

    .proceed-banner {
        max-width: 160px;
        height: 50px;
    }
}

/* Custom action button in thank you page */
.custom-button-link {
    text-decoration: none;
    display: inline-block;
}

.custom-action-button {
    background: linear-gradient(135deg, rgb(42, 46, 75) 0%, rgb(42, 46, 75) 100%);
    color: white;
    border: none;
    padding: 15px 40px;
    font-size: 1.1em;
    font-weight: 600;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: rgba(102, 126, 234, 0.3) 0px 8px 20px;
    margin-top: 10px;
}

.custom-action-button:hover {
    transform: translateY(-2px);
    box-shadow: rgba(102, 126, 234, 0.5) 0px 12px 30px;
    background: linear-gradient(135deg, rgb(42, 46, 75) 0%, rgb(42, 46, 75) 100%);
}

.custom-action-button:active {
    transform: translateY(0);
    box-shadow: rgba(102, 126, 234, 0.3) 0px 4px 15px;
}

.countdown-badge {
    display: inline-block;
    margin-top: 8px;
    padding: 2px 8px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    font-size: 0.7em;
    font-weight: bold;
    animation: pulse 1s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.05);
    }
}

/* Add universal box-sizing */
*, *::before, *::after {
    box-sizing: border-box;
}
