﻿
:root {
    --tj-page-background: #FDFBF5; /* Light golden beige */
}

/* Apply to every page */
html,
body {
    min-height: 100%;
    background-color: var(--tj-page-background) !important;
}

body {
    margin: 0;
    background-image: none;
}



.metal-dropdown {
    position: relative;
    width: 100%;
}

.metal-dropdown-trigger {
    width: 100%;
    min-height: 72px;
    padding: 10px 14px;
    display: flex;
    align-items: center;
    gap: 14px;
    background: #fff;
    border: 1px solid #d8d0c7;
    border-radius: 12px;
    text-align: left;
    cursor: pointer;
    transition: border-color .2s, box-shadow .2s;
}

    .metal-dropdown-trigger:hover,
    .metal-dropdown-trigger:focus-visible {
        border-color: #a98b62;
        box-shadow: 0 0 0 3px rgba(169, 139, 98, .12);
        outline: none;
    }

    .metal-dropdown-trigger img {
        width: 52px;
        height: 48px;
        object-fit: contain;
        border-radius: 8px;
    }

    .metal-dropdown-trigger .metal-name {
        flex: 1;
        font-weight: 600;
        color: #333;
    }

.metal-dropdown-arrow {
    color: #8d775d;
    transition: transform .2s;
}

.metal-dropdown-trigger.open .metal-dropdown-arrow {
    transform: rotate(180deg);
}

.metal-dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    z-index: 100;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    padding: 12px;
    background: #fff;
    border: 1px solid #e4ddd5;
    border-radius: 14px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, .12);
    max-height: 300px;
    overflow-y: auto;
}

    .metal-dropdown-menu[hidden] {
        display: none;
    }

.metal-option {
    display: flex;
    align-items: center;
    gap: 9px;
    min-width: 0;
    padding: 9px;
    border: 1px solid #eee8e1;
    border-radius: 10px;
    background: #fff;
    color: #333;
    text-align: left;
    cursor: pointer;
    transition: .2s;
}

    .metal-option:hover,
    .metal-option.active {
        border-color: #b89a70;
        background: #faf6f0;
    }

    .metal-option img {
        width: 42px;
        height: 38px;
        object-fit: contain;
        flex-shrink: 0;
    }

    .metal-option span {
        font-size: .9rem;
        overflow-wrap: anywhere;
    }

/* Engagement ring: premium stone selector */
.stone-dropdown-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    background: #fff;
    border: 1px solid #d8d0c7;
    border-radius: 12px;
    cursor: pointer;
    text-align: left;
}

    .stone-dropdown-toggle:hover,
    .stone-dropdown-toggle:focus-visible {
        border-color: #a98b62;
        outline: none;
        box-shadow: 0 0 0 3px rgba(169, 139, 98, .12);
    }

.stone-selected {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    color: #333;
}

    .stone-selected img {
        width: 48px;
        height: 48px;
        object-fit: contain;
        border-radius: 8px;
    }

.stone-arrow {
    color: #8d775d;
    transition: transform .2s;
}

.stone-dropdown-toggle.open .stone-arrow {
    transform: rotate(180deg);
}

.engagement-stone .stone-dropdown {
    display: none;
    margin-top: 10px;
    padding: 12px;
    border: 1px solid #e4ddd5;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 10px 24px rgba(0, 0, 0, .07);
}

    .engagement-stone .stone-dropdown.show {
        display: block;
    }

.engagement-stone .stone-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    max-height: 320px;
    overflow-y: auto;
}

.engagement-stone .stone-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 7px;
    min-width: 0;
    padding: 10px 5px;
    background: #fff;
    border: 1px solid #eee8e1;
    border-radius: 10px;
    color: #333;
    font-size: .82rem;
    cursor: pointer;
    transition: .2s;
}

    .engagement-stone .stone-option:hover,
    .engagement-stone .stone-option.active {
        border-color: #b89a70;
        background: #faf6f0;
    }

    .engagement-stone .stone-option img {
        width: 42px;
        height: 42px;
        object-fit: contain;
    }

.field-validation-message {
    display: none;
    margin-top: 7px;
    color: #dc3545;
    font-size: .875rem;
}

    .field-validation-message.show {
        display: block;
    }

@media (max-width: 480px) {
    .engagement-stone .stone-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .metal-dropdown-menu {
        grid-template-columns: 1fr;
    }
}
