/* Signup Page Styles */

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

body {
    background: #171737;
    color: white;
    font-family: Fredoka, sans-serif;
    min-height: 100vh;
    padding: 2rem 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Header */
.header {
    margin-bottom: 2rem;
    position: relative;
}

.back-button {
    position: absolute;
    top: 0;
    right: 0;
    color: #8B5CF6;
    font-family: Fredoka, sans-serif;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.3s ease;
}

.back-button:hover {
    color: #7C3AED;
    text-decoration: underline;
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.logo-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.logo-text {
    font-family: "Fredoka One", sans-serif;
    font-size: 22px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    color: #FFF;
}

.logo-text .desire {
    color: #FFF;
}

.logo-text .cash {
    background: linear-gradient(98deg, #F9C300 19.57%, #FFF 24.77%, #FFC800 30.77%, #FFD333 42.76%, #FFF9E2 46.76%, #FFC800 50.36%, #FFFDF5 58.2%, #FFC800 63.8%, #FFFDF6 79.15%, #FFC800 85.15%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.required-note {
    font-size: 14px;
    color: #ccc;
    margin-bottom: 2rem;
}

/* Form Styles */
.registration-form {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 2rem;
    backdrop-filter: blur(10px);
}

.form-section {
    margin-bottom: 3rem;
}

.section-title {
    font-family: "Fredoka One", sans-serif;
    font-size: 24px;
    margin-bottom: 1.5rem;
    color: white;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.form-row.full-width {
    grid-template-columns: 1fr;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-size: 14px;
    margin-bottom: 0.5rem;
    color: white;
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 12px;
    border: 1px solid #333;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 14px;
    font-family: Fredoka, sans-serif;
    width: 100%;
    transition: all 0.3s ease;
}

.form-group 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='%23999' 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-group select:focus {
    outline: none;
    border-color: #8B5CF6;
    box-shadow: 0 0 0 2px rgba(139, 92, 246, 0.2);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #8B5CF6;
    box-shadow: 0 0 0 2px rgba(139, 92, 246, 0.2);
}

.form-group select:hover {
    border-color: #555;
}

.form-group input:hover,
.form-group textarea:hover {
    border-color: #555;
}

.form-group select option {
    background: #171737;
    color: white;
    padding: 8px;
}

.form-group select option:hover {
    background: #8B5CF6;
}

.form-group select:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    background: rgba(255, 255, 255, 0.05);
}

.form-group input:disabled,
.form-group textarea:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    background: rgba(255, 255, 255, 0.05);
}

/* Remove invalid/valid styles before interaction */
.form-group input:invalid,
.form-group select:invalid,
.form-group textarea:invalid {
    border-color: #333;
}

.form-group input:valid,
.form-group select:valid,
.form-group textarea:valid {
    border-color: #333;
}

/* Show invalid/valid only after focus */
.form-group input:focus:invalid,
.form-group select:focus:invalid,
.form-group textarea:focus:invalid {
    border-color: #ff6b6b;
}

.form-group input:focus:valid,
.form-group select:focus:valid,
.form-group textarea:focus:valid {
    border-color: #4ade80;
}

/* Show invalid/valid only after interaction */
.form-group input.touched:invalid,
.form-group select.touched:invalid,
.form-group textarea.touched:invalid {
    border-color: #ff6b6b;
}

.form-group input.touched:valid,
.form-group select.touched:valid,
.form-group textarea.touched:valid {
    border-color: #4ade80;
}

.form-group input::placeholder,
.form-group select::placeholder,
.form-group textarea::placeholder {
    color: #999;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.promotional-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.promotional-section {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid #444;
    border-radius: 10px;
    padding: 1.5rem;
    position: relative;
    margin-bottom: 1rem;
}

.section-actions {
    display: flex;
    gap: 1rem;
}

.section-actions a {
    color: #8B5CF6;
    text-decoration: none;
    font-size: 14px;
    cursor: pointer;
}

.section-actions a:hover {
    color: #7C3AED;
}

.section-actions a.disabled {
    color: #666;
    cursor: not-allowed;
    pointer-events: none;
}

.block-actions {
    position: absolute;
    top: 1rem;
    right: 1rem;
    display: flex;
    gap: 1rem;
}

.block-actions a {
    color: #8B5CF6;
    text-decoration: none;
    font-size: 14px;
    cursor: pointer;
}

.block-actions a:hover {
    color: #7C3AED;
}

.block-actions a.disabled {
    color: #666;
    cursor: not-allowed;
    pointer-events: none;
}

#promotional-blocks {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.payment-details {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid #333;
    border-radius: 8px;
    padding: 1.5rem;
    margin-top: 1rem;
    transition: all 0.3s ease;
}

.payment-details.show {
    display: block !important;
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.form-group input[readonly] {
    background: rgba(255, 255, 255, 0.05);
    color: #ccc;
    cursor: not-allowed;
}

.help-icon {
    display: inline-block;
    width: 18px;
    height: 18px;
    background: #8B5CF6;
    color: white;
    border-radius: 50%;
    text-align: center;
    line-height: 18px;
    font-size: 12px;
    font-weight: bold;
    cursor: pointer;
    margin-left: 8px;
    position: relative;
    transition: all 0.3s ease;
}

.help-icon:hover {
    background: #7C3AED;
    transform: scale(1.1);
}

.tooltip {
    position: absolute;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    background: #333;
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: normal;
    white-space: nowrap;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: #333;
}

.tooltip.show {
    opacity: 1;
    visibility: visible;
}

.help-icon.active .tooltip {
    opacity: 1;
    visibility: visible;
}

.terms-section {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid #444;
    border-radius: 10px;
    padding: 1.5rem;
}

.terms-textarea {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid #444;
    border-radius: 8px;
    padding: 1rem;
    color: #ccc;
    font-size: 12px;
    line-height: 1.4;
    max-height: 200px;
    overflow-y: auto;
    margin-bottom: 1rem;
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.checkbox-group input[type="checkbox"] {
    width: 18px;
    height: 18px;
}

.checkbox-group label {
    font-size: 14px;
    margin-bottom: 0;
}

.checkbox-group label.disabled-label {
    color: #666;
    cursor: not-allowed;
}

.tos-link {
    color: #8B5CF6;
    text-decoration: underline;
    cursor: pointer;
    transition: color 0.3s ease;
}

.tos-link:hover {
    color: #7C3AED;
}

.disabled-label .tos-link {
    color: #8B5CF6;
    cursor: pointer;
}

.disabled-label .tos-link:hover {
    color: #7C3AED;
}

.checkbox-group input[type="checkbox"]:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.terms-error {
    background: #ffebee;
    border: 1px solid #f44336;
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 1rem;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    animation: errorSlideIn 0.3s ease-out;
}

.error-icon {
    background: #f44336;
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
    flex-shrink: 0;
}

.error-content {
    color: #d32f2f;
    font-size: 14px;
    line-height: 1.4;
}

.error-content strong {
    font-weight: 600;
}

@keyframes errorSlideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Success Modal Styles */
.success-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    animation: modalFadeIn 0.3s ease-out;
}

.success-modal-content {
    background: white;
    border-radius: 20px;
    padding: 3rem 2.5rem;
    max-width: 500px;
    width: 90%;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.4s ease-out;
}

.success-modal-header {
    margin-bottom: 2rem;
}

.success-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.success-logo-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.success-logo-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.success-logo-text {
    font-family: "Fredoka One", sans-serif;
    font-size: 28px;
    font-weight: 400;
    line-height: normal;
}

.success-logo-text .desire {
    color: #333;
}

.success-logo-text .cash {
    background: linear-gradient(98deg, #F9C300 19.57%, #333 24.77%, #FFC800 30.77%, #FFD333 42.76%, #FFF9E2 46.76%, #FFC800 50.36%, #FFFDF5 58.2%, #FFC800 63.8%, #FFFDF6 79.15%, #FFC800 85.15%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.success-icon {
    margin-bottom: 2rem;
}

.success-checkmark {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #8B5CF6, #7C3AED);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    box-shadow: 0 10px 30px rgba(139, 92, 246, 0.3);
    animation: checkmarkPulse 0.6s ease-out;
}

.success-title {
    font-family: "Fredoka One", sans-serif;
    font-size: 24px;
    color: #333;
    margin-bottom: 0.5rem;
}

.success-subtitle {
    font-family: Fredoka, sans-serif;
    font-size: 18px;
    color: #666;
    font-weight: 500;
    margin-bottom: 1.5rem;
}

.success-message {
    color: #555;
    font-size: 16px;
    line-height: 1.6;
}

.user-email {
    font-weight: 600;
    color: #8B5CF6;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes checkmarkPulse {
    0% {
        transform: scale(0.5);
        opacity: 0;
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.confirm-button {
    width: 100%;
    background: #8B5CF6;
    color: white;
    padding: 18px;
    border: none;
    border-radius: 44px;
    font-family: "Fredoka One", sans-serif;
    font-size: 18px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 2rem;
}

.confirm-button:hover {
    background: #7C3AED;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.4);
}

/* Responsive */
@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .container {
        padding: 0 1rem;
    }
    
    .registration-form {
        padding: 1rem;
    }

    .back-button {
        position: static;
        margin-bottom: 1rem;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        font-size: 16px;
        padding: 14px;
    }

    .form-group select {
        background-size: 18px;
        padding-right: 45px;
    }

    .header {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
    }
}
