* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Reset default iOS Safari link colors */
a {
    color: inherit;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
}

html, body {
    height: 100dvh;
    min-height: 100svh;
    overflow: clip;
    overflow: hidden; /* Fallback for browsers that don't support clip */
    overscroll-behavior: none;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background-color: #EDEDFF;
    color: #1a1a1a;
    line-height: 1.6;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card {
    width: 85vw;
    height: 85dvh;
    min-height: 85svh;
    background-color: #2C0720;
    border-radius: 24px;
    display: grid;
    grid-template-rows: 1fr auto;
    position: relative;
    overflow: hidden;
}

.main-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.left-column {
    display: flex;
    align-items: center;
    padding-left: 8%;
    margin-top: -59px;
    margin-left: 25px;
}

.right-column {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
}

.phone-container {
    width: 80%;
    max-width: 400px;
}

#phone {
    width: 100%;
    padding: clamp(14px, 1.5vw, 18px) clamp(20px, 2vw, 24px);
    padding-left: 52px;
    font-size: clamp(16px, 1.2vw, 20px);
    background-color: #EDEDFF;
    border: 2px solid #EDEDFF;
    border-radius: 12px;
    font-family: "Nunito", sans-serif;
    transition: border-color 0.3s ease;
    -webkit-appearance: none;
    -webkit-border-radius: 12px;
    -webkit-box-shadow: none;
    box-shadow: none;
}

#phone:focus {
    outline: none;
    border-color: #F9AE77;
    -webkit-box-shadow: 0 0 0 2px rgba(249, 174, 119, 0.3);
    box-shadow: 0 0 0 2px rgba(249, 174, 119, 0.3);
}

.iti {
    width: 100%;
}

.iti__flag-container {
    background-color: transparent;
}

.iti__selected-flag {
    background-color: transparent;
}

/* Country dropdown improvements */
.iti__search-input {
    padding: 12px 16px !important;
    font-size: 16px !important;
    height: 48px !important;
    font-family: "Nunito", sans-serif;
    border-radius: 8px !important;
    margin: 8px !important;
    width: calc(100% - 16px) !important;
}

.iti__dropdown-content {
    padding: 8px 0;
}

.iti__country {
    padding: 10px 16px;
    font-size: 15px;
}

.iti__country-list {
    max-height: 300px;
}

.submit-btn {
    width: 100%;
    margin-top: 20px;
    padding: clamp(14px, 1.5vw, 18px) clamp(20px, 2vw, 24px);
    font-size: clamp(16px, 1.2vw, 20px);
    font-weight: 600;
    font-family: "Nunito", sans-serif;
    background-color: #8887FF;
    color: #EDEDFF;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

h1 {
    font-family: "Nunito", sans-serif;
    font-size: clamp(3rem, 6vw, 5rem);
    font-weight: 700;
    letter-spacing: -1.5px;
    color: #8887FF;
}

h1 span {
    display: block;
    line-height: 1.1;
    opacity: 0; /* Revealed via WAAPI or fallback */
}

.logo-image {
    width: 500px;
    max-width: 90%;
    height: auto;
    display: block;
    margin-top: 15px;
}


.footer {
    position: absolute;
    bottom: 15px;
    left: calc(12% + 10px);
    display: flex;
    align-items: center;
    gap: 28px;
}

.footer-text {
    font-family: "Nunito", sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: #8887FF;
}

.pearl-decoration {
    position: absolute;
    bottom: 0;
    left: 75%;
    transform: translateX(-50%);
    width: 480px;
    height: 192px;
    object-fit: cover;
    object-position: top;
}

.divider {
    width: 2px;
    height: 16px;
    background-color: #8887FF;
    display: inline-block;
    margin: 0;
}

.follow-section {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 0;
}

.social-link {
    display: flex;
    align-items: center;
    transition: transform 0.2s ease;
}

.social-link:hover {
    transform: translateY(-2px);
}

.x-logo {
    height: 16px;
    width: auto;
    margin-top: -6px;
}

.privacy-policy {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    z-index: 10;
}

.privacy-policy a {
    font-family: "Nunito", sans-serif;
    font-size: 12px;
    font-weight: 500;
    color: rgba(44, 7, 32, 0.7);
    text-decoration: none;
    transition: color 0.2s ease;
}

.privacy-policy a:hover {
    color: rgba(44, 7, 32, 0.9);
}
@media (max-width: 768px) {
    .card {
        height: 88dvh;
        min-height: 88svh;
        grid-template-rows: 1fr auto;
    }
    
    .main-content {
        grid-template-columns: 1fr;
        grid-template-rows: 1fr 1fr;
    }
    
    .left-column {
        padding-left: 20px;
        padding-right: 20px;
        margin-left: 0;
        justify-content: center;
        align-items: flex-end;
        padding-bottom: 100px;
    }
    
    .right-column {
        margin-right: 0;
        align-items: flex-start;
        padding-top: 75px;
        margin-top: -135px;
    }
    
    h1 {
        text-align: center;
        font-size: clamp(3rem, 10vw, 5rem);
    }

    .logo-image {
        width: 350px;
        max-width: 80%;
        margin: -100px auto 0 auto;
    }
    
    .phone-container {
        width: 90%;
        max-width: none;
    }
    
    #phone {
        font-size: 18px;
        padding: 16px 20px;
        padding-left: 52px;
    }
    
    .submit-btn {
        margin-top: 12px;
        font-size: 18px;
        padding: 16px 20px;
    }
    
    .footer {
        position: fixed;
        padding-top: 2px;
        bottom: 10px;
        left: 50%;
        transform: translateX(-50%);
        justify-content: center;
        font-size: 12px;
        gap: 10px;
    }
    
    .footer-text {
        font-size: 12px;
        font-weight: 700;
        padding-top: 2px;
    }
    
    .footer-text:first-child {
        margin-left: 0;
    }
    
    .divider {
        height: 14px;
        margin: 0;
        margin-left: 0;
    }
    
    .x-logo {
        height: 16px;
        margin-top: -4px;
    }

    .pearl-decoration {
        left: 50%;
    }
                .privacy-policy {
                    display: block;
                    text-align: center;
                    margin-top: 15px;
                    margin-bottom: 40px;
                }
        
                .privacy-policy a {
                    color: rgb(110 108 108 / 48%);
                }
        
                .privacy-policy a:hover {
                    color: rgb(110 108 108 / 65%);
                }
}