/*
 * GA Share Application form styles.
 *
 * Deliberately self-contained (no Tailwind / no theme variables) so the
 * form looks consistent regardless of which page template wraps it.
 * Uses the GA brand red (#c8102e — adjust if the design team has a
 * different value on file) and a neutral grey palette.
 */

.ga-share-app-form {
    max-width: 720px;
    margin: 2rem auto;
    font-family: inherit;
    font-size: 16px;
    line-height: 1.5;
    color: #222;
}

/* Honeypot — visually hidden, kept in tab order out of the way. */
.ga-share-app-hp {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.ga-share-app-notice {
    padding: 0.75rem 1rem;
    margin-bottom: 1.5rem;
    background: #fff7e6;
    border-left: 4px solid #f5a623;
    border-radius: 2px;
}
.ga-share-app-notice--error {
    background: #fdecea;
    border-left-color: #c8102e;
}

.ga-share-app-section {
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 1.25rem 1.5rem 1.5rem;
    margin-bottom: 1.5rem;
    background: #fff;
}
.ga-share-app-section legend {
    font-weight: 700;
    font-size: 1.05rem;
    padding: 0 0.5rem;
    color: #222;
}

.ga-share-app-help {
    font-size: 0.875rem;
    color: #666;
    margin: 0.25rem 0 1rem;
}
.ga-share-app-help--center { text-align: center; }

.ga-share-app-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}
@media (max-width: 540px) {
    .ga-share-app-row { grid-template-columns: 1fr; }
}

.ga-share-app-field {
    margin-bottom: 1rem;
}
.ga-share-app-field label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.35rem;
    font-size: 0.9rem;
}
.ga-share-app-field input[type="text"],
.ga-share-app-field input[type="email"],
.ga-share-app-field input[type="tel"],
.ga-share-app-field input[type="number"],
.ga-share-app-field textarea {
    display: block;
    width: 100%;
    padding: 0.55rem 0.75rem;
    border: 1px solid #bbb;
    border-radius: 4px;
    font-size: 1rem;
    box-sizing: border-box;
    background: #fff;
}
.ga-share-app-field input:focus,
.ga-share-app-field textarea:focus {
    outline: none;
    border-color: #c8102e;
    box-shadow: 0 0 0 2px rgba(200,16,46,0.15);
}
.ga-share-app-field--error input,
.ga-share-app-field--error textarea {
    border-color: #c8102e;
    background: #fdf3f4;
}
.ga-share-app-error {
    color: #c8102e;
    font-size: 0.85rem;
    margin: 0.35rem 0 0;
    font-weight: 600;
}

.ga-share-app-radio-group {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 0.5rem;
}
.ga-share-app-radio {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border: 1px solid #ccc;
    border-radius: 999px;
    cursor: pointer;
    background: #fafafa;
    transition: background 0.15s, border-color 0.15s;
}
.ga-share-app-radio:has(input:checked),
.ga-share-app-radio.is-checked {
    border-color: #c8102e;
    background: #fdecef;
}

.ga-share-app-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    padding: 0.6rem 0;
    cursor: pointer;
    font-size: 0.95rem;
}
.ga-share-app-checkbox input[type="checkbox"] {
    margin-top: 0.25rem;
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    accent-color: #c8102e;
}

.ga-share-app-conditional {
    display: none;
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px dashed #e5e5e5;
}
.ga-share-app-conditional.is-visible { display: block; }

/* Shares quantity selector */
.ga-share-app-shares-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 0.5rem;
    margin: 0.75rem 0 1rem;
}
.ga-share-app-shares-option {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 0.75rem 1rem;
    border: 1px solid #ccc;
    border-radius: 6px;
    cursor: pointer;
    background: #fafafa;
    transition: background 0.15s, border-color 0.15s;
}
.ga-share-app-shares-option:has(input:checked),
.ga-share-app-shares-option.is-checked {
    border-color: #c8102e;
    background: #fdecef;
}
.ga-share-app-shares-option input[type="radio"] {
    position: absolute;
    top: 0.6rem;
    right: 0.6rem;
    accent-color: #c8102e;
}
.ga-share-app-shares-count {
    font-weight: 700;
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
}
.ga-share-app-shares-price {
    font-size: 0.85rem;
    color: #666;
}
.ga-share-app-shares-option--custom .ga-share-app-shares-price input {
    width: 100%;
    padding: 0.35rem 0.5rem;
    font-size: 0.85rem;
    border: 1px solid #bbb;
    border-radius: 3px;
}

.ga-share-app-total {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 1rem 1.25rem;
    margin-top: 1rem;
    background: #f7f7f7;
    border-radius: 4px;
    font-size: 1rem;
}
.ga-share-app-total strong {
    font-size: 1.5rem;
    color: #c8102e;
}

.ga-share-app-signed-meta {
    font-size: 0.875rem;
    color: #444;
    margin-top: 0.5rem;
}

.ga-share-app-submit-row {
    text-align: center;
    margin-top: 1.5rem;
}
.ga-share-app-submit {
    padding: 0.9rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    background: #c8102e;
    border: 0;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.15s, transform 0.05s;
}
.ga-share-app-submit:hover { background: #a40d25; }
.ga-share-app-submit:active { transform: translateY(1px); }
