/* ============================================
   Thryv Newsletter Signup — Form Styles
   Smith Lake Rentals & Sales
   Brand-matched: red primary action, lake-blue
   accents, designed to sit on a white section.
   ============================================ */

:root {
    --slr-red:       #b5392f;  /* amenity tags / primary buttons */
    --slr-red-dark:  #93271f;  /* hover */
    --slr-red-light: #e3a59f;  /* disabled */
    --slr-blue:      #1b7fc4;  /* headline blue */
    --slr-blue-dark: #136099;
    --slr-ink:       #2d3748;
    --slr-line:      #dfe3e8;
}

.tnl-wrap {
    max-width: 540px;
    margin: 0 auto;
    font-family: inherit;
}

#tnl-form {
    background: #ffffff;
    border: 1px solid var(--slr-line);
    border-top: 4px solid var(--slr-red);
    border-radius: 10px;
    padding: 34px 38px;
    box-shadow: 0 6px 24px rgba(27, 127, 196, 0.10);
}

/* Two-column row */
.tnl-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.tnl-row {
    margin-bottom: 18px;
}

/* Labels */
.tnl-field label {
    display: block;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--slr-blue);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.tnl-required {
    color: var(--slr-red);
    margin-left: 2px;
}

/* Inputs */
.tnl-field input {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid #cbd3da;
    border-radius: 6px;
    font-size: 0.97rem;
    color: var(--slr-ink);
    background: #fafbfc;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
    box-sizing: border-box;
}

.tnl-field input::placeholder {
    color: #9aa4af;
}

.tnl-field input:focus {
    outline: none;
    border-color: var(--slr-blue);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(27, 127, 196, 0.15);
}

/* Submit button — brand red */
.tnl-btn {
    width: 100%;
    padding: 14px 20px;
    background: var(--slr-red);
    color: #ffffff;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s, box-shadow 0.2s;
}

.tnl-btn:hover:not(:disabled) {
    background: var(--slr-red-dark);
    box-shadow: 0 4px 12px rgba(181, 57, 47, 0.28);
}

.tnl-btn:active:not(:disabled) {
    transform: scale(0.99);
}

.tnl-btn:disabled {
    background: var(--slr-red-light);
    cursor: not-allowed;
}

/* Messages */
.tnl-message {
    margin-top: 12px;
    font-size: 0.9rem;
    text-align: center;
    min-height: 20px;
}

.tnl-error {
    color: #93271f;
    background: #fdf3f2;
    border: 1px solid #f0c2bd;
    border-radius: 6px;
    padding: 10px 14px;
}

/* Success state (replaces entire form) */
.tnl-success-msg {
    text-align: center;
    font-size: 1.05rem;
    color: var(--slr-blue-dark);
    background: #eef7fc;
    border: 1px solid #b9ddf2;
    border-radius: 8px;
    padding: 30px 24px;
    line-height: 1.6;
}

/* Responsive */
@media (max-width: 480px) {
    #tnl-form {
        padding: 26px 22px;
    }

    .tnl-row-2 {
        grid-template-columns: 1fr;
    }
}
