@import url('https://fonts.googleapis.com/css2?family=Nunito:ital,wght@0,200..1000;1,200..1000&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

/* Modal overlay */
.modal-overlay {
    position: fixed;
    top: 6rem;
    left: 0;
    width: 100%;
    height: 80%;
    background: transparent;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    padding: 20px;
    box-sizing: border-box;
    user-select: none;
    -webkit-user-select: none; /* Safari/Chrome */
    -moz-user-select: none;    /* Firefox */
    -ms-user-select: none; 
}

/* Modal container */
.modal-container {
    background: #121216;
    border-radius: 32px;
    padding: 32px;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    position: relative;
    color: white;
    max-height: 90vh;
    overflow-y: auto;
    box-sizing: border-box;
}

.header {
    width: 100%;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 2rem;
}

/* Close button */
.close-btn {
    /* position: absolute; */
    /* top: 20px;
    right: 24px; */
    background: none;
    border: none;
    color: white;
    font-size: 32px;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    z-index: 10;
}

.hint_text {
    font-weight: 500;
    font-style: normal;
    font-size: 14px;
    line-height: 22px;
    letter-spacing: 0px;
}

/* Modal title */
.modal-title {
    font-size: clamp(24px, 5vw, 28px);
    font-weight: 600;
    /* margin: 0 0 24px 0; */
    color: white;
    /* padding-right: 40px; */
}

/* Tabs */
.tabs {
    display: none;
    /* Hide tabs since they're not in the design */
}

/* Messages */
.success-msg {
    color: #10b981;
    margin-bottom: 16px;
    font-size: 14px;
}

/* Form container */
.form-container {
    margin-top: 0;
}

/* Form row for side-by-side inputs */
.form-row {
    display: flex;
    gap: 16px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.form-row .form-group {
    flex: 1;
    margin-bottom: 0;
    min-width: 0;
}

/* Form groups */
.form-group {
    margin-bottom: 8px;
}

.form-group label {
    display: block;
    color: #b0b0b0;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
}

/* Input styling */
input,
select {
    width: 100% !important;
    padding: 16px !important;
    background: #3a3a3a !important;
    border: none !important;
    border-radius: 12px !important;
    color: white !important;
    font-size: 16px !important;
    box-sizing: border-box !important;
    outline: none !important;
    min-height: 50px !important;
}

#id_instagram_url {
    padding-right: 60px !important;
}

input::placeholder {
    color: #666 !important;
}

input:focus,
select:focus {
    background: #404040 !important;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.3) !important;
}

/* Select dropdown styling */
select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%23999' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e") !important;
    background-position: right 12px center !important;
    background-repeat: no-repeat !important;
    background-size: 16px !important;
    padding-right: 40px !important;
}

.label-warning-icon {
    width: 105px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

/* Terms container */
.terms-container {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.terms-container input[type="checkbox"] {
    width: auto !important;
    min-width: 18px !important;
    height: 18px !important;
    margin: 0 !important;
    flex-shrink: 0;
    margin-top: 2px !important;
}

.terms-label {
    color: #b0b0b0 !important;
    font-size: 14px !important;
    line-height: 1.4 !important;
    margin: 0 !important;
    flex: 1;
}

.terms-label a {
    color: #3b82f6;
    text-decoration: none;
}

.terms-label a:hover {
    text-decoration: underline;
}

/* Submit button */
.submit-btn {
    width: 100%;
    padding: 16px 35px;
    background-color: #FFFFFF;
    border: none;
    border-radius: 12px;
    color: black;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.submit-btn:hover {
    /* background: linear-gradient(135deg, #2563eb, #1e40af); */
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.submit-btn-login {
    width: 100%;
    padding: 16px;
    background-color: #FFFFFF;
    border: none;
    border-radius: 12px;
    color: black;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

/* Switch mode text */
.switch-mode {
    text-align: center;
    color: #888;
    font-size: 14px;
    margin-top: 1rem;
}

.switch-mode a {
    color: #3b82f6;
    text-decoration: none;
}

.switch-mode a:hover {
    text-decoration: underline;
}

/* Error messages */
.errorlist {
    color: #ef4444 !important;
    font-size: 12px !important;
    margin: 4px 0 0 0 !important;
    list-style: none !important;
    padding: 0 !important;
}

.errorlist li {
    margin-bottom: 4px;
}

.terms-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: transparent;
    z-index: 1001;
    display: flex;
    justify-content: center;
    align-items: center;
}

.terms-modal-container {
    background: white;
    border-radius: 32px;
    padding: 32px;
    width: 100%;
    height: 100%;
    max-width: 500px;
    margin: 0 auto;
    position: relative;
    color: black;
    max-height: 90vh;
    overflow-y: auto;
    box-sizing: border-box;
    scrollbar-width: none;
}

.terms-content {
    overflow-y: auto;
    padding: 20px 0;
    font-size: 14px;
    line-height: 1.6;
}

.terms-footer {
    padding-top: 20px;
    border-top: 1px solid #eee;
    text-align: center;
}

.terms-close-btn {
    /* position: absolute; */
    /* top: 20px;
    right: 24px; */
    background: none;
    border: none;
    color: black;
    font-size: 32px;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    z-index: 10;
}

@keyframes shake {

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

    25% {
        transform: translateX(-5px);
    }

    75% {
        transform: translateX(5px);
    }
}

@media (max-width: 480px) {
    .modal-overlay {
        top: 60px;
    }

    .modal-container {
        background: #121216;
        border-radius: 23px;
        padding: 20px;
        width: 100%;
        max-width: 500px;
        margin: 0 auto;
        position: relative;
        color: white;
        max-height: 90vh;
        overflow-y: auto;
        box-sizing: border-box;
        scrollbar-width: none;
    }

    .form-row {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
    }

    .form-row .form-group {
        flex: 1;
        margin-bottom: 0;
        min-width: 0;
    }

    .verification-message {
        min-height: 0;
        margin-top: 0;
    }

    .verification-message.error {
        margin-top: 5px;
        min-height: 1rem;
    }

    .terms-modal-container {
        border-radius: 25px;
    }
}

@media (max-width: 768px) and (min-width: 481px) {
    .modal-overlay {
        top: 30px;
    }

    .modal-container {
        scrollbar-width: none;
    }
}