/* =============================================
   Exhibition Registration — Frontend
   ============================================= */

/* ── Nút mở modal ──────────────────────────── */
.exreg-open-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 12px 28px;
    background: linear-gradient(135deg, #f48120 0%, #e06b0a 100%);
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    font-family: "Archivo", sans-serif;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 3px 12px rgba(244,129,32,0.35);
    letter-spacing: 0.3px;
}

.exreg-open-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(244,129,32,0.45);
}

.exreg-open-btn .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
}

/* ── Modal overlay & container ─────────────── */
.exreg-modal {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.exreg-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
}

.exreg-modal-container {
    position: relative;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    max-width: 920px;
    width: 100%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: exregFadeIn 0.3s ease;
}

@keyframes exregFadeIn {
    from { opacity: 0; transform: scale(0.95) translateY(10px); }
    to   { opacity: 1; transform: scale(1) translateY(0); }
}

.exreg-modal-close {
    position: absolute;
    top: 12px;
    right: 14px;
    background: rgba(0,0,0,0.35);
    border: none;
    color: #fff;
    font-size: 22px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: background 0.2s;
    line-height: 1;
}

.exreg-modal-close:hover {
    background: rgba(0,0,0,0.6);
}

/* ── Modal body — 2 columns ────────────────── */
.exreg-modal-body {
    display: flex;
    overflow-y: auto;
    flex: 1;
}

/* Left column (1/3) */
.exreg-modal-left {
    width: 40%;
    min-height: 500px;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.exreg-modal-left-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(3,76,157,0.3) 0%, rgba(1,39,83,0.85) 100%);
}

.exreg-modal-left-content {
    position: relative;
    z-index: 2;
    padding: 30px 24px;
    color: #fff;
    background-color: #03438bcc;
    left: 5%;
    right: 5%;
    width: 90%;
    border-radius: 20px;
}

.exreg-modal-left-content h2 {
    font-size: 18px;
    font-weight: 800;
    font-family: "Philosopher", sans-serif;
    margin: 0 0 10px;
    line-height: 29px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.exreg-modal-left-content p {
    font-size: 13px;
    opacity: 0.85;
    margin: 0;
    line-height: 1.5;
}
.exreg-modal-left-content p strong{display: block;margin-top: 20px;font-size: 14px;text-transform: uppercase;margin-bottom: 5px;}
/* Right column (2/3) */
.exreg-modal-right {
    width: 60%;
    padding: 32px 30px;
    overflow-y: auto;
    flex-shrink: 0;
}

/* ── Form styles ───────────────────────────── */
.exreg-form-row {
    margin-bottom: 16px;
}

.exreg-form-row label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    font-family: "Archivo", sans-serif;
    color: #333;
    margin-bottom: 5px;
}

.exreg-form-row .req {
    color: #e53e3e;
}

.exreg-form-row input,
.exreg-form-row select,
.exreg-form-row textarea {
    width: 100%;
    padding: 8px 14px;
    font-size: 14px;
    font-family: "inter", sans-serif;
    border: 1.5px solid #d5dce6;
    border-radius: 8px;
    background: #f8fafc;
    color: #333;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
}

.exreg-form-row input:focus,
.exreg-form-row select:focus,
.exreg-form-row textarea:focus {
    outline: none;
    border-color: #034c9d;
    box-shadow: 0 0 0 3px rgba(3,76,157,0.12);
    background: #fff;
}

.exreg-form-row textarea {
    resize: vertical;
}

.exreg-form-cols {
    display: flex;
    gap: 14px;
}

.exreg-form-cols .exreg-form-row {
    flex: 1;
}

/* Submit button */
.exreg-submit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 13px 20px;
    background: linear-gradient(135deg, #034c9d 0%, #012753 100%);
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    font-family: "Archivo", sans-serif;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: opacity 0.2s, transform 0.2s;
    letter-spacing: 0.3px;
}

.exreg-submit-btn:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.exreg-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Spinner */
.exreg-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: exregSpin 0.6s linear infinite;
    margin-right: 6px;
    vertical-align: middle;
}

@keyframes exregSpin {
    to { transform: rotate(360deg); }
}

/* Message box */
.exreg-message-box {
    margin-top: 14px;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-family: "Archivo", sans-serif;
    text-align: center;
}

.exreg-message-box.success {
    background: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.exreg-message-box.error {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

/* ── Responsive ────────────────────────────── */
@media (max-width: 700px) {
    .exreg-modal-body {
        flex-direction: column;
    }

    .exreg-modal-left {
        width: 100%;
        min-height: 160px;
    }

    .exreg-modal-right {
        width: 100%;
        padding: 24px 20px;
    }

    .exreg-form-cols {
        flex-direction: column;
        gap: 0;
    }

    .exreg-modal-container {
        max-height: 95vh;
    }
}
