/* assets/css/public/sms-consent.css */
/* Copyright (c) 2026 The Solo Software Group */

/*
 * Styles for the SMS consent + opt-in page.
 * Loaded by templates/public/sms-consent.blade.php.
 *
 * Design tokens match public.css:
 *   --navy: #1B2D4F  |  --gold: #C09A45
 *   --text-primary: #1A2740
 *   --text-secondary: #5E6F87
 *   --text-muted: #9BA8BA
 *   --smoke: #EEF1F6  |  --fog: #F5F7FA
 */

/* -- Layout ------------------------------------------------------------ */

body.tssg-public-document {
    display: flex;
    justify-content: center;
    padding: 40px 20px;
}

.tssg-consent-page {
    max-width: 600px;
    width: 100%;
}

/* -- Card -------------------------------------------------------------- */

.tssg-consent-card {
    background: #fff;
    border: 1.5px solid #EEF1F6;
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(27, 45, 79, 0.08);
    padding: 48px 40px;
}

/* -- Heading ----------------------------------------------------------- */

.tssg-consent-heading {
    font-size: 24px;
    font-weight: 600;
    color: #1A2740;
    margin-bottom: 4px;
}

.tssg-consent-company {
    font-size: 14px;
    color: #5E6F87;
    margin-bottom: 28px;
}

/* -- Body (editable disclosure content) -------------------------------- */

.tssg-consent-body {
    font-size: 15px;
    line-height: 1.7;
    color: #1A2740;
    margin-bottom: 32px;
    padding-bottom: 28px;
    border-bottom: 1px solid #EEF1F6;
}

/* -- Detail sections --------------------------------------------------- */

.tssg-consent-details {
    margin-bottom: 32px;
}

.tssg-consent-subheading {
    font-size: 14px;
    font-weight: 600;
    color: #1A2740;
    margin-top: 20px;
    margin-bottom: 6px;
}

.tssg-consent-subheading:first-child {
    margin-top: 0;
}

.tssg-consent-details p {
    font-size: 14px;
    line-height: 1.6;
    color: #5E6F87;
    margin: 0;
}

.tssg-consent-details a {
    color: #C09A45;
    text-decoration: none;
}

.tssg-consent-details a:hover {
    text-decoration: underline;
}

/* -- Opt-in form ------------------------------------------------------- */

.tssg-consent-form {
    margin-top: 32px;
    padding-top: 28px;
    border-top: 1px solid #EEF1F6;
}

.tssg-consent-form-heading {
    font-size: 16px;
    font-weight: 600;
    color: #1A2740;
    margin: 0 0 18px;
}

.tssg-consent-form-error {
    font-size: 13px;
    color: #B84040;
    margin-top: 6px;
    line-height: 1.5;
}

.tssg-consent-form-error--global {
    background: #FCEEEE;
    border: 1px solid #F4D4D4;
    border-radius: 6px;
    padding: 10px 14px;
    margin: 0 0 16px;
}

/* -- Pre-filled (Form B) ----------------------------------------------- */

.tssg-consent-prefill {
    background: #F5F7FA;
    border: 1px solid #EEF1F6;
    border-radius: 8px;
    padding: 14px 16px;
    margin-bottom: 18px;
}

.tssg-consent-prefill-row {
    display: flex;
    gap: 8px;
    font-size: 14px;
    line-height: 1.6;
}

.tssg-consent-prefill-row + .tssg-consent-prefill-row {
    margin-top: 4px;
}

.tssg-consent-prefill-label {
    color: #5E6F87;
    font-weight: 500;
    min-width: 70px;
}

.tssg-consent-prefill-value {
    color: #1A2740;
    font-weight: 600;
    letter-spacing: 0.02em;
}

/* -- Phone field (Form A) ---------------------------------------------- */

.tssg-consent-field {
    margin-bottom: 18px;
}

.tssg-consent-field-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #1A2740;
    margin-bottom: 6px;
}

.tssg-consent-input {
    width: 100%;
    box-sizing: border-box;
    padding: 11px 14px;
    font-size: 15px;
    font-family: inherit;
    color: #1A2740;
    background: #fff;
    border: 1.5px solid #EEF1F6;
    border-radius: 6px;
    outline: none;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.tssg-consent-input:focus {
    border-color: #1B2D4F;
    box-shadow: 0 0 0 3px rgba(27, 45, 79, 0.10);
}

/* -- Consent checkbox -------------------------------------------------- */

.tssg-consent-checkbox-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    background: #FAFBFD;
    border: 1px solid #EEF1F6;
    border-radius: 8px;
    margin-bottom: 18px;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s;
}

.tssg-consent-checkbox-row:hover {
    border-color: #C09A45;
    background: #FEFCF5;
}

.tssg-consent-checkbox {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    margin: 2px 0 0;
    cursor: pointer;
    accent-color: #1B2D4F;
}

.tssg-consent-checkbox-text {
    font-size: 13px;
    line-height: 1.6;
    color: #1A2740;
}

.tssg-consent-checkbox-text strong {
    color: #1A2740;
    font-weight: 700;
}

/* -- Submit button ----------------------------------------------------- */

.tssg-consent-submit {
    width: 100%;
    padding: 13px 24px;
    font-size: 15px;
    font-weight: 600;
    font-family: inherit;
    color: #fff;
    background: #1B2D4F;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.15s, transform 0.05s;
}

.tssg-consent-submit:hover {
    background: #243A66;
}

.tssg-consent-submit:active {
    transform: translateY(1px);
}

.tssg-consent-submit:focus-visible {
    outline: 2px solid #C09A45;
    outline-offset: 2px;
}

/* -- Footer ------------------------------------------------------------ */

.tssg-consent-footer {
    font-size: 11px;
    color: #9BA8BA;
    border-top: 1px solid #EEF1F6;
    padding-top: 16px;
    margin-top: 32px;
    text-align: center;
}

/* -- Mobile ------------------------------------------------------------ */

@media (max-width: 480px) {
    body.tssg-public-document {
        padding: 20px 12px;
    }

    .tssg-consent-card {
        padding: 32px 24px;
    }

    .tssg-consent-heading {
        font-size: 20px;
    }

    .tssg-consent-checkbox-row {
        padding: 12px 14px;
    }
}
