/* =========================================================================
   Modern "Figma Quality" UI - WooCommerce Event Inquiry
   ========================================================================= */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

/* Modal Backdrop */
.wei-modal {
    position: fixed;
    z-index: 999999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 23, 42, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
}

.wei-modal.wei-show {
    opacity: 1;
    visibility: visible;
}

/* Modal Content Box */
.wei-modal-content {
    background: #ffffff;
    padding: 40px;
    width: 100%;
    max-width: 520px;
    border-radius: 20px;
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.15);
    position: relative;
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    transform: translateY(20px);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    max-height: 90vh;
    overflow-y: auto;
    box-sizing: border-box;
}

.wei-modal.wei-show .wei-modal-content {
    transform: translateY(0);
}

/* Custom Scrollbar */
.wei-modal-content::-webkit-scrollbar {
    width: 8px;
}

.wei-modal-content::-webkit-scrollbar-thumb {
    background-color: #cbd5e1;
    border-radius: 10px;
}

/* Close Button */
.wei-close {
    position: absolute;
    top: 24px;
    right: 24px;
    width: 36px;
    height: 36px;
    background: #f1f5f9;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 10;
}

.wei-close:hover {
    background: #e2e8f0;
    color: #0f172a;
}

/* Headings */
.wei-modal-content h2 {
    margin-top: 0;
    color: #0f172a;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 28px;
    letter-spacing: -0.02em;
}

/* Form Layout */
.wei-form-group {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
}

.wei-form-row {
    display: flex;
    gap: 20px;
}

.wei-form-row .wei-half {
    flex: 1;
}

.wei-form-group label {
    font-size: 14px;
    font-weight: 600;
    color: #334155;
    margin-bottom: 8px;
    display: block;
}

/* Inputs */
.wei-form-control {
    width: 100%;
    padding: 12px 16px;
    font-size: 15px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: #0f172a;
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    transition: all 0.2s ease;
    box-sizing: border-box;
    height: 48px;
}

.wei-form-control:focus {
    background-color: #ffffff;
    border-color: #3b82f6;
    outline: none;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.15);
}

.wei-form-control::placeholder {
    color: #94a3b8;
}

/* Select wrapper */
.wei-select-wrapper {
    position: relative;
}

.wei-select-wrapper select {
    appearance: none;
    cursor: pointer;
}

.wei-select-wrapper::after {
    content: '';
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 12px;
    height: 12px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2364748b'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    pointer-events: none;
}

/* Budget Breakdown Box */
#wei-price-breakdown {
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 24px;
    margin-top: 28px;
}

#wei-price-breakdown h3 {
    margin: 0 0 20px 0;
    font-size: 16px;
    color: #0f172a;
    font-weight: 700;
}

.wei-budget-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    font-size: 14px;
    color: #475569;
}

.wei-val {
    font-weight: 600;
    color: #0f172a;
    font-size: 15px;
}

.wei-budget-discount {
    color: #10b981;
}

.wei-budget-discount .wei-val {
    color: #10b981;
}

.wei-budget-divider {
    height: 1px;
    background: #cbd5e1;
    margin: 16px 0;
}

.wei-budget-total {
    flex-direction: column;
    align-items: stretch;
    margin-bottom: 0;
}

.wei-budget-total-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.wei-budget-total-label {
    font-size: 16px;
    font-weight: 700;
    color: #0f172a;
}

#wei-total-budget {
    font-size: 24px;
    font-weight: 700;
    color: #0f172a;
}

.wei-budget-subtitle {
    font-size: 13px;
    color: #64748b;
    margin-top: 4px;
}

/* Primary Button */
#wei-submit-btn,
.wei-modal-content button[type="submit"] {
    width: 100%;
    margin-top: 28px;
    font-size: 16px;
    font-weight: 600;
    font-family: 'Plus Jakarta Sans', sans-serif;
    padding: 16px;
    border-radius: 12px;
    background: #3b82f6;
    color: #ffffff;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

#wei-submit-btn:hover,
.wei-modal-content button[type="submit"]:hover {
    background: #2563eb;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}

#wei-submit-btn:active,
.wei-modal-content button[type="submit"]:active {
    transform: translateY(0);
}

#wei-submit-btn:disabled,
.wei-modal-content button[type="submit"]:disabled {
    background: #94a3b8;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Form Messages */
#wei-form-messages {
    margin-top: 20px;
    font-size: 14px;
    border-radius: 12px;
}

/* -------------------------------------------------------------
   Dashboard UI (Figma Quality)
   ------------------------------------------------------------- */
.wei-dashboard-wrapper {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.05);
    border: 1px solid #f1f5f9;
    padding: 40px;
    margin-bottom: 40px;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.wei-dashboard-wrapper h3 {
    margin-top: 0;
    font-size: 22px;
    color: #0f172a;
    margin-bottom: 28px;
    font-weight: 700;
    letter-spacing: -0.01em;
}

/* Wrapper for horizontal scroll on mobile */
.wei-dashboard-table-container {
    overflow-x: auto;
    width: 100%;
}

.wei-dashboard-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    min-width: 600px;
}

.wei-dashboard-table th {
    background-color: #f8fafc;
    color: #64748b;
    font-weight: 600;
    font-size: 13px;
    padding: 16px 24px;
    text-align: left;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* rounding header corners */
.wei-dashboard-table th:first-child {
    border-top-left-radius: 12px;
    border-bottom-left-radius: 12px;
}

.wei-dashboard-table th:last-child {
    border-top-right-radius: 12px;
    border-bottom-right-radius: 12px;
}

.wei-dashboard-table td {
    padding: 20px 24px;
    border-bottom: 1px solid #f1f5f9;
    color: #334155;
    font-size: 15px;
    vertical-align: middle;
}

.wei-dashboard-table tbody tr:last-child td {
    border-bottom: none;
}

.wei-dashboard-table tbody tr:hover td {
    background-color: #fafbfc;
}

.wei-dashboard-table strong {
    color: #0f172a;
    font-weight: 600;
}

/* Dashboard Action Buttons */
.wei-dashboard-actions {
    display: flex;
    gap: 12px;
}

.wei-btn-view,
.wei-btn-edit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.wei-btn-view {
    background-color: #ffffff;
    border: 1px solid #cbd5e1;
    color: #334155 !important;
}

.wei-btn-view:hover {
    background-color: #f8fafc;
    color: #0f172a !important;
    border-color: #94a3b8;
}

.wei-btn-edit {
    background-color: #0f172a;
    border: 1px solid #0f172a;
    color: #ffffff !important;
}

.wei-btn-edit:hover {
    background-color: #1e293b;
    border-color: #1e293b;
    box-shadow: 0 4px 10px rgba(15, 23, 42, 0.2);
}