@font-face {
  font-family: "DIN LT Pro";
  src: url(../fonts/din-next-lt-pro-medium.ttf);
  font-style: normal;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    overflow-x: hidden;
    display: flex;
    justify-content: center;
}

.container {
    max-width: 500px;
    width: 100%;
    background: url(../images/Bg\ Image\ 1.png);
    background-position: center center;
    background-size: 100% 100%;
    background-repeat: no-repeat;
    padding: 1rem;
    position: relative;
}

.page {
    display: none;
}

.page.active {
    display: block;
    margin-top: 3rem;
    margin-bottom: 6rem;
}

/* Language Selector */
.language-selector {
    display: flex;
    align-items: center;
    position: absolute;
    top: 20px;
    right: 20px;
    /* max-width: auto; */
    z-index: 1000;
    background: rgba(255, 255, 255, 1);
    border-radius: 10px;
}

.language-selector select {
    font-family: "DIN LT Pro", sans-serif;
    text-transform: uppercase;
    padding: 10px 10px;
    border: none;
    width: auto;
    background: rgba(255, 255, 255, 0.9);
    color: #265499;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    outline: none;
    -webkit-appearance: none;
}

.language-selector select:focus{
    border: none;
    outline: none;
}

/* Logo */
.logo-container {
    margin: 20px 0;
}

.logo {
    background: url(../images/logobg.png) no-repeat center center;
    border-radius: 10px;
    text-align: center;
    padding: 15px;
}

.logo-image {
    width: 92px;
    height: 65px;
}

/* Form Container */
.form-container {
    /* background: rgba(255, 255, 255, 0.95); */
    background: url(../images/form-bg.png);
    background-repeat: no-repeat;
    background-size: 100% 100%;
    background-position: center center;
    padding: 30px;
    border-radius: 15px;
    max-width: 450px;
    width: 100%;
    margin: 20px auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    margin-bottom: 0rem;
}

form{
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.login-form{
    display: flex;
    flex-direction: column;
    gap: 15px;
    height: 400px;
    overflow: auto;
}

::-webkit-scrollbar, ::-webkit-scrollbar-corner{
    display: none;
}

input,
select {
    font-family: "DIN LT Pro", sans-serif;
    padding: 10px;
    border: 2px solid #ddd;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    color: #265499;
    outline: none;
    transition: all 0.3s;
}

input::placeholder{
    color: #265499;
}

.select-form {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background: url('../images/Polygon\ 4.png') no-repeat right 1rem center;
    background-size: 14px;
    background-color: white;
}

input:focus,
select:focus {
    border-color: #2c5aa0;
}

select:disabled {
    background: white;
    cursor: not-allowed;
}

.mobile-input {
    display: flex;
    gap: 10px;
}

.country-code {
    font-family: "DIN LT Pro", sans-serif;
    padding: 10px;
    background: white;
    border: 2px solid #ddd;
    border-radius: 10px;
    font-weight: 600;
    color: #265499;
}

input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0; /* Important to remove any default margin added by the spin buttons */
}

.mobile-input input {
    flex: 1;
    width: 100%;
}

.items{
    font-family: "DIN LT Pro", sans-serif;
    display: flex;
    flex-direction: column;
    gap: 10px;
    background-color: #FFFFFF;
    padding: 10px;
    border-radius: 5px;
    position: relative;
    margin-bottom: 20px;
}

.items p{
    color: #265499;
    font-weight: bold;
}

.items>input, .items>select{
    background-color: #ECECEC;
    border: none;
    border-radius: 5px;
}

.add-more{
    display: flex;
    width: 100%;
    position: absolute;
    bottom: -13px;
    left: 50%;
    transform: translateX(-50%);
    justify-content: center;
    align-items: center;
    gap: 5px;
}

.add-more-btn{
    font-family: "DIN LT Pro", sans-serif;
    font-weight: bold;
    padding: 6px 20px;
    border: none;
    background-color: #D2D2D2;
    border-radius: 31px;
    color: #265499;
    cursor: pointer;
}
 .remove-btn{
    font-family: "DIN LT Pro", sans-serif;
    font-weight: bold;
    padding: 6px 20px;
    border: none;
    background-color: #D2D2D2;
    border-radius: 31px;
    color: #265499;
    cursor: pointer;
}

.error-message {
    color: #e74c3c;
    font-size: 12px;
    margin-top: -8px;
    margin-left: 5px;
    display: none;
}

.error-message.show {
    display: block;
}

.submit-btn,
.spin-btn {
    font-family: "DIN LT Pro", sans-serif;
    background: #265499;
    color: white;
    padding: 15px;
    max-width: 180px;
    width: 100%;
    align-self: center;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    text-transform: uppercase;
    /* margin-top: 2rem; */
    margin-bottom: 2rem;
}

.checkbox-item{
    color: white;
    padding: 5px;
    font-family: "DIN LT Pro", sans-serif;
    font-size: 14px;
}

.checkbox-item input{
    width: 12px;
    height: 12px;
}

.checkbox-item label{
    margin-left: 4px;
}

.checkbox-item a{
    color: white;
}

.submit-btn:hover,
.spin-btn:hover {
    background: #1e3a6f;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(44, 90, 160, 0.4);
}

.submit-btn:disabled,
.spin-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

/* Wheel Container */
.wheel-container {
    position: relative;
    width: 400px;
    height: 400px;
    margin: 40px auto;
}

.arrow {
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 20px solid transparent;
    border-right: 20px solid transparent;
    border-top: 40px solid #e74c3c;
    z-index: 10;
    filter: drop-shadow(0 3px 5px rgba(0, 0, 0, 0.3));
}

#wheelCanvas {
    border-radius: 50%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border: 8px solid #FFD700;
}

.center-circle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: radial-gradient(circle, #8B0000, #DC143C);
    border-radius: 50%;
    border: 5px solid #FFD700;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    z-index: 5;
}

.spin-btn {
    display: block;
    margin: 20px auto;
    max-width: 300px;
    width: 100%;
}

/* Congratulations Card */
.congrats-card {
    background: linear-gradient(135deg, #fff 0%, #f8f8f8 100%);
    border-radius: 20px;
    padding: 50px 40px;
    max-width: 450px;
    width: 100%;
    margin: 40px auto;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
    text-align: center;
    border-top: 8px solid #FFD700;
}

.check-icon {
    margin: 0 auto 20px;
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #FFD700, #FFA500);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.4);
}

.congrats-title {
    color: #FFD700;
    font-size: 36px;
    font-weight: bold;
    margin-bottom: 15px;
    text-transform: uppercase;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.congrats-text {
    color: #333;
    font-size: 16px;
    margin-bottom: 20px;
}

.prize-amount {
    font-size: 72px;
    font-weight: bold;
    color: #FFD700;
    margin: 20px 0;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.2);
}

.congrats-subtext {
    color: #666;
    font-size: 14px;
    margin-top: 20px;
}

/* Product Image */
.product-image {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    max-width: 400px;
    width: 100%;
    z-index: 1;
}

.product-image img {
    width: 100%;
    height: auto;
    display: block;
}

.thank-you{
    background: url(../images/form-bg.png);
    background-repeat: no-repeat;
    background-size: 100% 100%;
    background-position: center center;
    padding: 100px 60px;
    border-radius: 15px;
    color: #FFFFFF;
    margin-top: 5rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.thank-you p{
    font-family: "DIN LT Pro", sans-serif;
    font-weight: bold;
    text-align: center;
}

/* Responsive Design */
@media (max-width: 768px) {

    .form-container,
    .congrats-card {
        padding: 20px;
    }

    .wheel-container {
        width: 300px;
        height: 300px;
    }

    #wheelCanvas {
        width: 300px;
        height: 300px;
    }

    .congrats-title {
        font-size: 28px;
    }

    .prize-amount {
        font-size: 56px;
    }

    .product-image {
        max-width: 300px;
    }

    .language-selector {
        top: 10px;
        right: 10px;
    }

    .language-selector select {
        padding: 8px 12px;
        font-size: 12px;
    }

    .thank-you{
        padding: 100px 30px;
    }
}

@media (max-width: 360px) {
    .thank-you{
        padding: 100px 10px;
    }
}

/* Animation */
@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.spinning {
    animation: spin 3s cubic-bezier(0.17, 0.67, 0.12, 0.99);
}