/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.invitation-modal {
    background: linear-gradient(135deg, #6a3bc2 0%, #e94e1b 100%);
    border-radius: 24px;
    padding: 60px 50px;
    max-width: 480px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    transform: scale(0.8);
    transition: transform 0.3s ease;
}

.modal-overlay.active .invitation-modal {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    color: white;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

.modal-logo {
    text-align: center;
    margin-bottom: 50px;
}

.modal-logo img {
    max-width: 200px;
    height: auto;
}

.invitation-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-label {
    color: white;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
}

.form-input-container {
    position: relative;
    display: flex;
    align-items: center;
}

.phone-input-container {
    display: flex;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.country-select {
    background: #f5f5f5;
    border: none;
    padding: 16px 12px;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    cursor: pointer;
    border-right: 1px solid #e0e0e0;
    outline: none;
}

.phone-input {
    flex: 1;
    border: none;
    padding: 16px 20px;
    font-size: 16px;
    background: white;
    color: #333;
    outline: none;
}

.phone-input::placeholder {
    color: #999;
    font-size: 14px;
}

.invitation-code-input {
    /*width: 100%;*/
    border: none;
    border-radius: 12px;
    padding: 16px 20px;
    font-size: 16px;
    background: white;
    color: #333;
    outline: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.invitation-code-input::placeholder {
    color: #999;
    font-size: 14px;
}

.required-text {
    color: rgba(255, 255, 255, 0.8);
    font-size: 12px;
    margin-top: 20px;
    text-align: left;
}

.submit-btn {
    background: #ff6a33;
    color: white;
    border: none;
    border-radius: 12px;
    padding: 18px 32px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    margin-top: 20px;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.submit-btn:hover {
    background: #e94e1b;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.submit-btn:active {
    transform: translateY(0);
}

.terms-text {
    color: rgba(255, 255, 255, 0.8);
    font-size: 12px;
    text-align: center;
    margin-top: 20px;
    line-height: 1.4;
}

.terms-text a {
    color: white;
    text-decoration: underline;
}

.terms-text a:hover {
    color: #ff6a33;
}

/* Responsive Design */
@media (max-width: 768px) {
    .invitation-modal {
        padding: 40px 30px;
        margin: 20px;
        border-radius: 16px;
    }

    .modal-logo img {
        max-width: 160px;
    }

    .phone-input-container {
        flex-direction: column;
    }

    .country-select {
        border-right: none;
        border-bottom: 1px solid #e0e0e0;
    }
}

@media (max-width: 480px) {
    .invitation-modal {
        padding: 30px 20px;
        width: 95%;
    }

    .modal-logo {
        margin-bottom: 30px;
    }

    .form-group {
        gap: 12px;
    }
}