﻿/* --- iOS-like refinements layered on top of your tokens/components --- */
.gn-modal {
    padding: 22px 22px 18px;
}
/* a hair more breathing room */

.stack {
    display: grid;
    gap: 12px;
}

.stack-sm {
    display: grid;
    gap: 10px;
}

.stack-lg {
    display: grid;
    gap: 16px;
}

/* Larger, comfy inputs (prevents iOS zoom; 16px+) */
.input-lg {
    padding: 14px 14px;
    border-radius: 14px;
    font-size: 16px;
}

/* Big primary actions */
.btn-wide {
    width: 100%;
    justify-content: center;
}

/* Segmented control (radio group styled like iOS) */
.segmented {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
}

@media (min-width:640px) {
    .segmented {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width:980px) {
    .segmented {
        grid-template-columns: repeat(4, 1fr);
    }
}

.segmented .seg {
    position: relative;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: #fff;
    overflow: hidden;
}

.segmented input[type=radio] {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
}

.segmented label {
    display: block;
    padding: 10px 12px;
    text-align: center;
    font-weight: 600;
    cursor: pointer;
    user-select: none;
}

.segmented input[type=radio]:focus + label {
    outline: 3px solid var(--ring);
    outline-offset: 2px;
}

.segmented input[type=radio]:checked + label {
    background: var(--brand);
    color: #fff;
}

/* Tip row stacks on mobile, aligns horizontally on desktop */
.tip-row {
    display: grid;
    gap: 12px;
}

@media (min-width:860px) {
    .tip-row {
        grid-template-columns: 1fr auto;
        align-items: center;
    }
}

/* Make modal naturally roomy on small screens too */
@media (max-width:720px) {
    .gn-modal {
        padding: 18px 16px;
    }
}

.info-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    font-size: 12px;
    font-weight: 700;
    border-radius: 50%;
    background-color: var(--brand); /* blue-600 */
    color: #fff;
    margin-left: 6px;
    cursor: help;
    flex-shrink: 0;
}

    .info-icon:hover {
        color: var(--brand);
    }
