/* my-oath-form.css - Styles for My Oath of Allegiance form clauses */

/* Clause row container - keeps text and radio top-aligned */
.oath-clause-row {
    display: flex;
    align-items: flex-start;
    gap: 16px; /* space between text block and radio */
    padding: 12px 0;
    border-bottom: 1px solid #eee; /* subtle row separator */
}

/* Radio itself - keep it top-aligned */
.oath-clause-row .gfield_radio input[type="radio"] {
    margin-top: 4px; /* tiny nudge to align with first line of text */
}

/* Clause text block (left column) */
.oath-clause-text {
    flex: 1;
    line-height: 1.5;
    font-size: 1.05em;
}

/* Short description / reminder (right column) */
.oath-clause-description {
    font-size: 0.95em;
    color: #555;
    font-style: italic;
    padding-left: 16px;
    border-left: 3px solid #ccc;
    min-width: 220px;
    max-width: 300px;
}

/* Hover feedback on entire row */
.oath-clause-row:hover {
    background-color: #f9f9f9;
    transition: background-color 0.2s ease;
}

/* When Yes is selected */
.oath-clause-row input[type="radio"]:checked ~ .oath-clause-text,
.oath-clause-row input[type="radio"]:checked ~ .oath-clause-description {
    font-weight: 600;
    background-color: #e8f5e9;
    padding: 8px;
    border-radius: 4px;
}

/* Character count note (small, subtle) */
.oath-char-count {
    font-size: 0.85em;
    color: #777;
    margin-top: 4px;
    display: block;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .oath-clause-row {
        flex-direction: column;
        gap: 8px;
    }
    .oath-clause-description {
        border-left: none;
        border-top: 2px solid #eee;
        padding-left: 0;
        padding-top: 8px;
    }
}

/* Selected Yes state */
.gform_wrapper .oath-clause-row input[type="radio"]:checked ~ * {
    background-color: #e8f5e9 !important; /* light green */
    padding: 8px !important;
    border-radius: 4px !important;
}

/* Force radio to align with first line of clause text */
.gform_wrapper .oath-clause-row .gfield_radio label {
    display: flex;
    align-items: flex-start;
    gap: 12px; /* space between radio and text */
}

.gform_wrapper .oath-clause-row input[type="radio"] {
    margin-top: 8px; /* adjust 6–12px until radios level with clause paragraph start */
    flex-shrink: 0;
}

/* Ensure text starts at top */
.gform_wrapper .oath-clause-text {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

.reset-clauses-btn {
    background-color: #f44336; /* red for "reset" */
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1em;
    margin-top: 20px;
}

