/* ─────────────────────────────────────────────
   DZ Enrollment — Frontend Styles
───────────────────────────────────────────── */

/* Code Button Wrapper */
.dze-code-button-wrap {
    margin: 20px 0;
    text-align: center;
}

.dze-code-btn {
    padding: 20px;
    background: linear-gradient(135deg, #0073aa 0%, #005a87 100%);
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 700;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 115, 170, 0.25);
    width: 100%;
}

.dze-code-btn:hover {
    background: linear-gradient(135deg, #005a87 0%, #003d5c 100%);
    box-shadow: 0 6px 16px rgba(0, 115, 170, 0.35);
    transform: translateY(-2px);
}

.dze-code-btn:active {
    transform: translateY(0);
}

/* Modal Styles */
.dze-code-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99999;
}

.dze-code-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
}

.dze-code-modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translate(-50%, -45%);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

.dze-code-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 28px;
    border-bottom: 1px solid #e0e0e0;
    background: linear-gradient(135deg, #f5f5f5 0%, #fafafa 100%);
}

.dze-code-modal-header h2 {
    margin: 0;
    font-size: 1.35rem;
    color: #1d1d1d;
    font-weight: 700;
}

.dze-code-modal-close {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #999;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.dze-code-modal-close:hover {
    background: #f0f0f0;
    color: #333;
}

.dze-code-modal-body {
    padding: 28px;
}

.dze-input-wrap {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.dze-code-input {
    flex: 1;
    padding: 12px 15px;
    font-size: 1rem;
    border: 2px solid #ddd;
    border-radius: 6px;
    letter-spacing: 3px;
    text-transform: uppercase;
    font-family: 'Courier New', monospace;
    min-width: 200px;
    transition: all 0.3s ease;
}

.dze-code-input:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 4px rgba(0, 115, 170, 0.1);
    background: #fafafa;
}

.dze-code-input:disabled {
    background: #f0f0f0;
    color: #999;
    cursor: not-allowed;
}

.dze-submit-btn {
    padding: 12px 28px;
    background: linear-gradient(135deg, #0073aa 0%, #005a87 100%);
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 700;
    transition: all 0.3s ease;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(0, 115, 170, 0.2);
}

.dze-submit-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #005a87 0%, #003d5c 100%);
    box-shadow: 0 4px 12px rgba(0, 115, 170, 0.3);
    transform: translateY(-1px);
}

.dze-submit-btn:active:not(:disabled) {
    transform: translateY(0);
}

.dze-submit-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Messages */
.dze-message {
    margin-top: 16px;
    padding: 12px 16px;
    border-radius: 6px;
    font-size: 0.9rem;
    display: none;
    border-left: 4px solid;
    animation: fadeIn 0.3s ease;
}

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

.dze-message:not(:empty) {
    display: block;
}

.dze-message--success {
    background: #eafbea;
    border-color: #5cb85c;
    color: #2d6a2d;
}

.dze-message--error {
    background: #fdf2f2;
    border-color: #e05252;
    color: #8b1a1a;
}

/* Responsive */
@media (max-width: 600px) {
    .dze-code-modal-content {
        width: 95%;
        max-height: 90vh;
    }

    .dze-code-modal-header {
        padding: 20px 24px;
    }

    .dze-code-modal-header h2 {
        font-size: 1.1rem;
    }

    .dze-code-modal-body {
        padding: 20px;
    }

    .dze-input-wrap {
        flex-direction: column;
    }

    .dze-code-input {
        min-width: 100%;
    }

    .dze-submit-btn {
        width: 100%;
        text-align: center;
    }

    .dze-code-btn {
        width: 100%;
        padding: 14px 24px;
    }
}

