/**
 * Phidias Theme - Signup Form Styles
 * Styles for product-switcher (currency tabs) and signup-specific elements
 */

/* ===== Product Switcher (Currency Tabs) ===== */

/* Override inline styles from plugin */
#row-product-switcher-c {
    background: transparent !important;
    padding-top: 0 !important;
}

#row-product-switcher-c .am-element,
#row-product-switcher-c .element {
    padding: 0 !important;
    width: 100% !important;
}

ul.product-type-select {
    list-style: none;
    margin: 0;
    padding: 16px 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    overflow: visible;
}

ul.product-type-select li {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 22px !important;
    border: 2px solid var(--glass-border) !important;
    border-radius: var(--border-radius-sm) !important;
    background: var(--medium-navy) !important;
    color: var(--cool-grey) !important;
    font-size: 13px;
    font-weight: 600;
    font-family: var(--font-family);
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

ul.product-type-select li:hover {
    border-color: var(--classic-gold) !important;
    color: var(--pure-white) !important;
}

ul.product-type-select li.selected {
    background: var(--gold-dim) !important;
    border-color: var(--classic-gold) !important;
    color: var(--classic-gold) !important;
    box-shadow: none !important;
}

/* ===== Product Cards ===== */

[id^=row-product_id_page] input[type="radio"] {
    visibility: hidden;
    height: 0;
    width: 0;
    display: none;
}


/* --- Card (default) --- */

[id^=row-product_id_page] .am-element label {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 2px solid var(--glass-border);
    border-radius: var(--border-radius);
    padding: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    text-align: left;
    min-width: 200px;
    box-shadow: none;
    color: var(--pure-white);
    display: flex;
    flex-direction: column;
}

/* --- Card radio circle (top-right) --- */

[id^=row-product_id_page] .am-element label::after {
    content: '';
    position: absolute;
    top: 16px;
    right: 16px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid var(--glass-border);
    background: transparent;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

/* --- Card hover --- */

[id^=row-product_id_page] .am-element label:hover {
    border-color: var(--classic-gold);
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
}

/* --- Card selected --- */

[id^=row-product_id_page] .am-element label:has(input[type="radio"]:checked) {
    border-color: var(--classic-gold);
    background: linear-gradient(135deg, var(--gold-dim) 0%, transparent 100%);
}

[id^=row-product_id_page] .am-element label:has(input[type="radio"]:checked)::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--classic-gold) 0%, var(--light-gold) 100%);
}

[id^=row-product_id_page] .am-element label:has(input[type="radio"]:checked)::after {
    background: var(--classic-gold);
    border-color: var(--classic-gold);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%231a1f2e' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 14px;
}

/* --- Product title (name) --- */

[id^=row-product_id_page] .am-element .am-product-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--pure-white);
    padding: 0;
    margin-bottom: 4px;
}

[id^=row-product_id_page] .am-element .am-product-title.product-name-small {
    font-size: 16px;
    font-weight: 700;
    color: var(--pure-white);
    margin-bottom: 4px;
}

/* --- Product terms (price) --- */

[id^=row-product_id_page] .am-element .am-product-terms {
    font-size: 24px;
    font-weight: 700;
    color: var(--classic-gold);
    padding: 0;
    margin-bottom: 16px;
    border-bottom: none;
    line-height: 1.3;
}

/* --- Product description --- */

[id^=row-product_id_page] .am-element .am-product-desc {
    display: none;
}

/* --- Product tag --- */

[id^=row-product_id_page] .am-element .am-product-tag {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
    background: rgba(211, 181, 116, 0.12);
    color: var(--classic-gold);
}

/* --- Selected state text colors --- */

[id^=row-product_id_page] .am-element label:has(input[type="radio"]:checked) .am-product-title {
    color: var(--pure-white);
}

[id^=row-product_id_page] .am-element label:has(input[type="radio"]:checked) .am-product-terms {
    color: var(--classic-gold);
}

[id^=row-product_id_page] .am-element label:has(input[type="radio"]:checked) .am-product-tag {
    background: rgba(211, 181, 116, 0.25);
    color: var(--classic-gold);
}

/* ===== Agreement Block ===== */

.agreement {
    font-size: 12px;
    line-height: 1.6;
    white-space: pre-wrap;
    max-height: 350px;
    overflow: auto;
    color: var(--cool-grey);
    background: var(--medium-navy);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 20px;
}

.agreement p {
    margin-bottom: 12px;
}

.agreement p:last-child {
    margin-bottom: 0;
}

/* Scrollbar styling */
.agreement::-webkit-scrollbar {
    width: 6px;
}

.agreement::-webkit-scrollbar-track {
    background: transparent;
}

.agreement::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 3px;
}

.agreement::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.25);
}

.subscription-stepper {
    margin-top: 48px;
}

.account-type-selection {
    padding: 2em 0 0 0;
}

/* Align submit button to right */
#row-buttons {
    border-top: 1px solid var(--glass-border);
}

.am-form input[type="submit"] {
    margin-left: auto;
}

#row-buttons .am-element.group {
    overflow: hidden;
    padding-top: 24px;
    display: flex;
}

.am-form #row-buttons div.am-element {
    margin: 0;
}

.am-form #row-buttons div.am-element a {
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    color: var(--cool-grey);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    padding: 12px 32px;
    font-family: 'Inter', sans-serif;
    transition: all 0.2s ease;
}

.am-form #row-buttons div.am-element a:hover {
    border-color: var(--classic-gold);
}


.product-section .am-product-title {
    display: block;
    font-size: 24px !important;
    font-weight: 700 !important;
    color: var(--pure-white) !important;
    margin-bottom: 4px !important;
}

.product-section .am-product-title.product-name-small {
    font-size: 16px !important;
    font-weight: 700 !important;
    color: var(--pure-white) !important;
    margin-bottom: 4px !important;
}

.product-section .am-product-tag {
    display: none!important;
}

.am-product-platform {
    margin-top: auto;
}

.am-product-platform-badge {
    margin-top: 2em;
    padding: .5em 10px;
    border-radius: 6px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-align: center;
    border: 2px solid var(--glass-border);
    color: var(--pure-white);
}

.profile-main .am-form form,
.am-signup .am-form form {
    border: none;
    background: none;
    backdrop-filter: none;
    box-shadow: none;
}

.profile-main .am-form form .am-element,
.profile-main .am-form form div.am-row.am-no-label .am-element,
.am-signup .am-form form .am-element,
.am-signup .am-form form div.am-row.am-no-label .am-element {
    padding: 1em 0;
}

.profile-main .am-form fieldset {
    margin-top: 0;
    margin-bottom: 2em;
}

.profile-main .am-form fieldset legend {
    display: flex;
}
.profile-main .am-form fieldset legend span {
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin-left: 1em;
}
.profile-main #row-_submit_-0 {
    display: none;
}

.profile-main .am-form .am-element {
    font-size: 14px;
}

.profile-main .am-form .am-element a {
    color: var(--classic-gold);
}