/* Custom CSS */

:root {
    /* #bfa46f */
    --primary-color: #bfa46f;

    /* #1d1c1a */
    --text-color: #1d1c1a;

    /* #e0d5c4 */
    --surface-color: #e0d5c4;

    /* #85724d */
    --accent-color: #85724d;

    /* #e9e2d8 */
    --surface-elevated-color: #e9e2d8;

    /* #e9e2d6 */
    --surface-overlay-color: #e9e2d6;

    /* #8b6508 */
    --highlight-color: #8b6508;

    /* #202d28 */
    --contrast-color: #e8e8e8;

    /* #1e1e1e */
    --text-strong-color: #1e1e1e;

    --site-logo-header-max-height: 72px;
    --site-logo-footer-max-height: 140px;
}

.jupiterx-header img[src="images/logo.png"],
.jupiterx-header-custom img[src="images/logo.png"] {
    display: block;
    width: auto !important;
    max-width: 100%;
    max-height: var(--site-logo-header-max-height);
    height: auto !important;
    object-fit: contain;
}

.jupiterx-footer img[src="images/logo.png"] {
    display: block;
    width: auto !important;
    max-width: 100%;
    max-height: var(--site-logo-footer-max-height);
    height: auto !important;
    object-fit: contain;
}

.site-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.site-modal.show {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.site-modal-backdrop {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at top, rgba(255, 255, 255, 0.10), transparent 38%),
        rgba(18, 16, 12, 0.72);
    backdrop-filter: blur(10px);
}

.site-modal-card {
    position: relative;
    width: min(100%, 480px);
    padding: 32px 30px 28px;
    border: 1px solid var(--primary-color);
    border-radius: 28px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(245, 238, 226, 0.96));
    box-shadow:
        0 30px 80px rgba(15, 12, 8, 0.28),
        inset 0 1px 0 rgba(255, 255, 255, 0.7);
    text-align: center;
    transform: translateY(24px) scale(0.96);
    transition: transform 0.28s ease;
}

.site-modal.show .site-modal-card {
    transform: translateY(0) scale(1);
}

.site-modal-status {
    width: 72px;
    height: 72px;
    margin: 0 auto 18px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    font-size: 34px;
    font-weight: 700;
    line-height: 1;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.14);
}

.site-modal-status.success {
    color: #ffffff;
    background: linear-gradient(135deg, #2d8a46, #59b56f);
}

.site-modal-status.error {
    color: #ffffff;
    background: linear-gradient(135deg, #b3392f, #df6459);
}

.site-modal-title {
    margin: 0;
    color: var(--text-color);
    font-size: clamp(28px, 3vw, 34px);
    line-height: 1.1;
    letter-spacing: -0.03em;
}

.site-modal-text {
    margin: 14px 0 0;
    color: rgba(29, 28, 26, 0.78);
    font-size: 16px;
    line-height: 1.65;
}

.site-modal-actions {
    margin-top: 24px;
}

.site-modal-button {
    min-width: 180px;
    border: 0;
    border-radius: 999px;
    padding: 14px 24px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: #ffffff;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.02em;
    cursor: pointer;
    box-shadow: 0 16px 35px rgba(0, 0, 0, 0.18);
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.site-modal-button:hover,
.site-modal-button:focus-visible {
    transform: translateY(-1px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.22);
    outline: none;
}

.site-modal-button:active {
    transform: translateY(0);
}

@media (max-width: 767px) {
    .site-modal {
        padding: 16px;
    }

    .site-modal-card {
        padding: 26px 20px 22px;
        border-radius: 22px;
    }

    .site-modal-status {
        width: 64px;
        height: 64px;
        margin-bottom: 16px;
        font-size: 30px;
    }

    .site-modal-button {
        width: 100%;
        min-width: 0;
    }
}

/* Example: Override main section background color. */
/* body .jupiterx-main {
    background-color: gray;
} */
