/* Premium Badge */
.premium-ribbon {
    position: absolute;
    top: 20px;
    right: -30px;
    background: #E040B9;
    color: white;
    padding: 4px 35px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transform: rotate(45deg);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    z-index: 10;
}

.card-front {
    position: relative;
    overflow: hidden;
}

/* Premium Content Modal */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal-overlay.active {
    display: flex;
}

.modal-content {
    background: white;
    border-radius: 8px;
    max-width: 540px;
    width: 90%;
    max-height: 95vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.modal-header {
    padding: 20px 24px 16px;
    border-bottom: 1px solid #e5e7eb;
    position: relative;
    display: flex;
    flex-direction: column;
}

.modal-header h2 {
    margin: 0 0 6px 0;
    font-size: 22px;
    color: #111827;
    display: block;
    width: 100%;
}

.modal-subtitle {
    margin: 0;
    font-size: 13px;
    color: #6b7280;
    line-height: 1.4;
    display: block;
    width: 100%;
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #6b7280;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.modal-close:hover {
    background-color: #f3f4f6;
}

.modal-body {
    padding: 20px 24px;
}

.form-group {
    margin-bottom: 14px;
}

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

.form-group label .required {
    color: #dc2626;
}

.form-group input[type="text"],
.form-group input[type="email"] {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.form-group input:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.checkbox-group {
    margin-bottom: 12px;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    font-size: 14px;
    color: #374151;
    line-height: 1.5;
}

.checkbox-label input[type="checkbox"] {
    margin-right: 8px;
    margin-top: 2px;
    cursor: pointer;
}

.checkbox-label a {
    color: #2563eb;
    text-decoration: none;
}

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

.modal-footer {
    padding: 12px 24px 20px;
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.btn {
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
}

.btn-primary {
    background-color: #E040B9;
    color: white;
}

.btn-primary:hover:not(:disabled) {
    background-color: #821567;
}

.btn-primary:disabled {
    background-color: #d1d5db;
    cursor: not-allowed;
}

.btn-secondary {
    background-color: #f3f4f6;
    color: #374151;
}

.btn-secondary:hover {
    background-color: #e5e7eb;
}

.error-message {
    color: #dc2626;
    font-size: 13px;
    margin-top: 4px;
}

.success-message {
    color: var(--color-text-secondary, #374151);
    padding: 0;
    font-size: 14px;
    line-height: 1.6;
}

/* Confirmation screen replaces form */
.modal-confirmation {
    text-align: center;
    padding: 40px 24px;
}

.modal-confirmation h3 {
    font-size: 1.25rem;
    color: #111827;
    margin-bottom: 12px;
}

.modal-confirmation p {
    font-size: 0.95rem;
    color: #6b7280;
    margin-bottom: 24px;
    line-height: 1.6;
}

/* Mobile: full-height modal */
@media (max-width: 768px) {
    .modal-content {
        max-height: 100vh;
        height: 100vh;
        width: 100%;
        border-radius: 0;
        display: flex;
        flex-direction: column;
    }

    .modal-body {
        flex: 1;
        overflow-y: auto;
    }

    .modal-footer {
        padding: 16px 24px 24px;
    }
}
