/*
 * TPDG Coaching Onboarding — Form CSS
 *
 * Loaded on the client portal page where the Tools tab renders the form.
 * Brand: navy + gold over warm cream. Mobile-first.
 */

.tpdg-onb-wrap {
    --tpdg-navy: #0F2A44;
    --tpdg-gold: #B08D3F;
    --tpdg-stone: #5C5A55;
    --tpdg-cream: #F0EBDC;
    --tpdg-warm: #FBF7EE;
    --tpdg-rule: #DDD6C5;
    --tpdg-red: #8B2E2E;

    max-width: 760px;
    margin: 0 auto;
    color: #1A1A1A;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
}

.tpdg-onb-intro {
    background: var(--tpdg-cream);
    border-left: 3px solid var(--tpdg-gold);
    padding: 20px 24px;
    margin-bottom: 32px;
}

.tpdg-onb-intro__title {
    font-family: Georgia, serif;
    color: var(--tpdg-navy);
    font-size: 28px;
    margin: 0 0 8px;
    font-weight: 700;
}

.tpdg-onb-intro__lede {
    font-size: 15px;
    color: var(--tpdg-stone);
    line-height: 1.55;
    margin: 0;
}

/* Section */

.tpdg-onb-section {
    background: #fff;
    border: 1px solid var(--tpdg-rule);
    border-radius: 6px;
    padding: 24px;
    margin-bottom: 16px;
}

.tpdg-onb-section__head {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.tpdg-onb-section__num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: var(--tpdg-navy);
    color: #fff;
    border-radius: 50%;
    font-weight: 700;
    font-size: 15px;
    flex-shrink: 0;
}

.tpdg-onb-section__title {
    font-family: Georgia, serif;
    color: var(--tpdg-navy);
    font-size: 20px;
    margin: 0;
    font-weight: 700;
}

.tpdg-onb-section__sub {
    width: 100%;
    margin: 4px 0 0 44px;
    font-size: 13px;
    color: var(--tpdg-stone);
    font-style: italic;
}

/* Grid */

.tpdg-onb-grid {
    display: grid;
    gap: 16px;
}

.tpdg-onb-grid--2 {
    grid-template-columns: repeat(2, 1fr);
}

@media (max-width: 640px) {
    .tpdg-onb-grid--2 { grid-template-columns: 1fr; }
    .tpdg-onb-section { padding: 18px; }
}

/* Field */

.tpdg-onb-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 14px;
}

.tpdg-onb-field:last-child { margin-bottom: 0; }

.tpdg-onb-field--full { grid-column: 1 / -1; }

.tpdg-onb-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--tpdg-navy);
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.tpdg-onb-req {
    color: var(--tpdg-gold);
    margin-left: 2px;
}

.tpdg-onb-help {
    text-transform: none;
    letter-spacing: 0;
    color: var(--tpdg-stone);
    font-weight: 400;
    font-size: 12px;
    font-style: italic;
    margin-left: 4px;
}

.tpdg-onb-help-block {
    font-size: 13px;
    color: var(--tpdg-stone);
    font-style: italic;
    line-height: 1.45;
    margin: 0 0 4px;
}

/* Inputs */

.tpdg-onb-wrap input[type="text"],
.tpdg-onb-wrap input[type="email"],
.tpdg-onb-wrap input[type="tel"],
.tpdg-onb-wrap textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 10px 12px;
    border: 1px solid var(--tpdg-rule);
    border-radius: 4px;
    font-size: 15px;
    font-family: inherit;
    background: #fff;
    color: #1A1A1A;
    line-height: 1.4;
    transition: border-color 0.1s;
}

.tpdg-onb-wrap input:focus,
.tpdg-onb-wrap textarea:focus {
    outline: none;
    border-color: var(--tpdg-gold);
    box-shadow: 0 0 0 3px rgba(176, 141, 63, 0.15);
}

.tpdg-onb-wrap textarea {
    resize: vertical;
    min-height: 60px;
}

/* Radios + checkboxes */

.tpdg-onb-radios,
.tpdg-onb-checks {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 4px;
}

.tpdg-onb-checks {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px 16px;
}

@media (max-width: 640px) {
    .tpdg-onb-checks { grid-template-columns: 1fr; }
}

.tpdg-onb-radio,
.tpdg-onb-check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 12px;
    border: 1px solid var(--tpdg-rule);
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.1s, border-color 0.1s;
    line-height: 1.4;
}

.tpdg-onb-radio:hover,
.tpdg-onb-check:hover {
    background: var(--tpdg-warm);
    border-color: var(--tpdg-gold);
}

.tpdg-onb-radio input,
.tpdg-onb-check input {
    margin: 2px 0 0 0;
    flex-shrink: 0;
}

.tpdg-onb-radio input:checked + span,
.tpdg-onb-check input:checked + span {
    font-weight: 600;
    color: var(--tpdg-navy);
}

/* Submit */

.tpdg-onb-actions {
    margin-top: 32px;
    text-align: center;
    padding: 24px;
}

.tpdg-onb-submit {
    display: inline-block;
    background: var(--tpdg-navy);
    color: #fff;
    padding: 14px 32px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.1s;
    min-width: 240px;
}

.tpdg-onb-submit:hover {
    background: #1a3d5e;
}

.tpdg-onb-submit:disabled {
    background: var(--tpdg-stone);
    cursor: not-allowed;
}

.tpdg-onb-submit__note {
    margin: 12px 0 0;
    font-size: 13px;
    color: var(--tpdg-stone);
    font-style: italic;
}

/* Status */

.tpdg-onb-status {
    margin-top: 16px;
    padding: 14px 18px;
    border-radius: 4px;
    font-size: 14px;
    text-align: center;
}

.tpdg-onb-status--error {
    background: #FAEFEF;
    color: var(--tpdg-red);
    border: 1px solid var(--tpdg-red);
}

.tpdg-onb-status--success {
    background: #F4F9F4;
    color: #2A5A2D;
    border: 1px solid #2A5A2D;
}

/* Defensive: belt-and-braces reset for the drop-cap issue */
.tpdg-onb-wrap *::first-letter {
    font-size: inherit !important;
    color: inherit !important;
    font-weight: inherit !important;
    float: none !important;
    line-height: inherit !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    text-transform: inherit !important;
}
