:root {
    --red: #ed1c24;
    --ink: #202124;
    --muted: #60646c;
    --line: #e8eaed;
    --surface: #ffffff;
}

body {
    background: radial-gradient(circle at 50% 6%, #fffcf8 0%, #faf6f0 50%, #f4eee5 100%);
    color: #292524;
    font-family: 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    min-width: 320px;
    min-height: 100vh;
}

button, input, select, textarea {
    font: inherit;
}

.topbar {
    align-items: center;
    background: #fff;
    border-bottom: 1px solid var(--line);
    display: flex;
    justify-content: space-between;
    min-height: 64px;
    padding: 10px 24px;
    position: sticky;
    top: 0;
    z-index: 50;
}

.brand img {
    height: 42px;
    width: auto;
}

.topnav {
    align-items: center;
    display: flex;
    gap: 16px;
}

.topnav a, .topnav button, .admin-header a, .primary-link {
    background: var(--red);
    border: 0;
    border-radius: 6px;
    color: #fff;
    cursor: pointer;
    display: inline-block;
    font-weight: 700;
    padding: 8px 14px;
    text-decoration: none;
}

.topnav form {
    margin: 0;
}

.notice {
    border-radius: 6px;
    margin: 16px auto;
    max-width: 980px;
    padding: 12px 16px;
}

.notice-success {
    background: #e7f6ec;
    color: #136b2f;
}

.notice-error {
    background: #fde8e8;
    color: #9f1d1d;
}

.login-screen, .empty-state {
    align-items: center;
    display: flex;
    justify-content: center;
    min-height: calc(100vh - 64px);
    padding: 32px 16px;
    text-align: center;
}

.login-panel {
    max-width: 420px;
    width: 100%;
}

.login-panel img {
    max-width: 320px;
    width: 100%;
}

.login-panel h1, .empty-state h1 {
    font-size: 28px;
    margin: 18px 0 8px;
}

/* Dedicated Responsive Thanks Screen */
.thanks-screen {
    align-items: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: calc(100vh - 50px);
    padding: 32px 16px;
    text-align: center;
    box-sizing: border-box;
    width: 100%;
}

.thanks-panel {
    max-width: 640px;
    width: 100%;
    margin: 0 auto;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 24px 16px;
    box-sizing: border-box;
}

.thanks-brand-logo {
    max-width: 220px;
    width: 100%;
    height: auto;
    margin: 0 auto 16px;
    display: block;
    filter: drop-shadow(0 3px 10px rgba(0, 0, 0, 0.04));
}

.thanks-panel h1 {
    font-family: 'Lora', Georgia, serif;
    font-size: 28px;
    font-weight: 700;
    color: #1c1917;
    margin: 0 auto 10px;
    line-height: 1.35;
    text-align: center;
    max-width: 580px;
}

.thanks-message {
    font-size: 16px;
    color: #57534e;
    line-height: 1.6;
    max-width: 520px;
    margin: 12px auto 26px;
    text-align: center;
}

.thanks-action {
    margin-top: 6px;
    width: 100%;
    display: flex;
    justify-content: center;
}

.thanks-btn {
    display: inline-block;
    padding: 13px 32px;
    font-size: 15px;
    border-radius: 9999px;
    background: #dc2626;
    color: #ffffff !important;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
    box-shadow: 0 4px 14px rgba(220, 38, 38, 0.28);
}

.thanks-btn:hover {
    background: #b91c1c;
    color: #ffffff !important;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(220, 38, 38, 0.35);
}

@media (max-width: 600px) {
    .thanks-screen {
        padding: 24px 12px;
        min-height: calc(100vh - 20px);
    }

    .thanks-panel {
        padding: 16px 8px;
    }

    .thanks-brand-logo {
        max-width: 170px;
        margin-bottom: 12px;
    }

    .thanks-panel h1 {
        font-size: 22px;
        line-height: 1.35;
        margin-bottom: 8px;
        padding: 0 4px;
    }

    .thanks-message {
        font-size: 14.5px;
        line-height: 1.55;
        margin: 10px auto 22px;
        padding: 0 8px;
    }

    .thanks-btn {
        width: 100%;
        max-width: 260px;
        padding: 13px 20px;
        font-size: 14.5px;
    }
}

.login-panel p {
    color: var(--muted);
    margin-bottom: 24px;
}

.login-panel label, .edit-shell label {
    display: block;
    font-weight: 700;
    margin-bottom: 14px;
    text-align: left;
}

.login-panel input, .edit-shell input, .edit-shell textarea {
    border: 1px solid var(--line);
    border-radius: 6px;
    display: block;
    margin-top: 6px;
    padding: 10px 12px;
    width: 100%;
}

.login-panel button, .edit-shell button {
    background: var(--red);
    border: 0;
    border-radius: 6px;
    color: #fff;
    cursor: pointer;
    font-weight: 700;
    padding: 11px 16px;
    width: 100%;
}

.tree-line {
    height: 1px;
    max-width: 320px;
    margin: 12px auto 14px;
    background: linear-gradient(90deg, transparent, #c2410c, transparent);
    opacity: 0.65;
}

.login-screen {
    align-items: center;
    display: flex;
    justify-content: center;
    min-height: calc(100vh - 40px);
    padding: 20px 16px;
    text-align: center;
}

.otp-panel {
    max-width: 800px;
    width: 100%;
    margin: 0 auto;
    text-align: center;
    padding: 12px 20px 24px;
}

.otp-brand-logo {
    max-width: 190px;
    width: 100%;
    height: auto;
    margin: 0 auto 10px;
    display: block;
    filter: drop-shadow(0 3px 10px rgba(0, 0, 0, 0.04));
}

.otp-panel h1 {
    font-family: 'Lora', Georgia, serif;
    font-size: 30px;
    font-weight: 700;
    color: #1c1917;
    margin: 0 0 6px;
    letter-spacing: -0.01em;
    text-align: center;
    line-height: 1.25;
}

.otp-intro {
    text-align: center;
    margin: 0 auto 16px;
    max-width: 760px;
}

.otp-lead {
    font-family: 'Lora', Georgia, serif;
    font-style: italic;
    font-size: 20px;
    font-weight: 600;
    color: #991b1b;
    line-height: 1.4;
    margin: 10px auto;
    text-align: center;
    text-shadow: 0 1px 1px rgba(255, 255, 255, 0.8);
}

.otp-text {
    font-size: 15.5px;
    color: #57534e;
    line-height: 1.55;
    max-width: 740px;
    margin: 0 auto 14px;
    text-align: center;
}

.otp-instruction {
    font-size: 15.5px;
    font-weight: 700;
    color: #1c1917;
    margin: 12px auto 6px;
    text-align: center;
}

.otp-example-title {
    font-size: 13.5px;
    color: #78716c;
    margin: 0 auto 6px;
    text-align: center;
}

.otp-country-tags {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    margin: 0 auto 18px;
}

.country-tag {
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid #e7dfd5;
    border-radius: 20px;
    padding: 4px 14px;
    font-size: 13.5px;
    color: #57534e;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

.country-tag strong {
    color: #1c1917;
    font-weight: 700;
}

.otp-card {
    max-width: 360px;
    margin: 0 auto;
    text-align: center;
}

.otp-card label {
    display: block;
    font-size: 12.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #57534e;
    margin-bottom: 6px;
    text-align: center;
}

.otp-card input {
    background: #ffffff;
    border: 1.5px solid #d6cfc5;
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 16px;
    width: 100%;
    text-align: center;
    box-sizing: border-box;
    display: block;
    margin: 4px auto 12px;
    transition: all 0.2s ease;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.04);
}

.otp-card input:focus {
    border-color: #b91c1c;
    box-shadow: 0 0 0 3px rgba(185, 28, 28, 0.12);
    outline: none;
}

.otp-card button {
    background: linear-gradient(180deg, #b91c1c 0%, #991b1b 100%);
    color: #ffffff;
    font-weight: 700;
    padding: 11px 22px;
    border: 0;
    border-radius: 8px;
    width: 100%;
    cursor: pointer;
    font-size: 15px;
    letter-spacing: 0.02em;
    text-align: center;
    box-shadow: 0 3px 10px rgba(153, 27, 27, 0.2);
    transition: all 0.2s ease;
}

.otp-card button:hover:not(:disabled) {
    background: linear-gradient(180deg, #991b1b 0%, #7f1d1d 100%);
    box-shadow: 0 4px 14px rgba(153, 27, 27, 0.3);
    transform: translateY(-1px);
}

.otp-card button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.otp-step {
    margin-top: 14px;
}

#otp-code {
    letter-spacing: 6px;
    font-size: 20px;
    font-weight: 700;
    text-align: center;
}

.otp-status,
.otp-error,
.admin-note {
    margin-top: 10px;
    text-align: center;
}

.otp-status {
    color: #57534e;
    font-size: 13.5px;
}

.otp-error {
    color: #9f1d1d;
    font-size: 13.5px;
}

.admin-note a {
    color: #b91c1c;
    font-weight: 700;
}

.recaptcha-shell {
    margin: 6px 0 12px;
}

.welcome-strip {
    display: flex;
    justify-content: center;
    margin: 14px auto 0;
    padding: 0 16px;
    text-align: center;
}

.welcome-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid #e7dfd5;
    border-radius: 30px;
    padding: 5px 14px;
    font-size: 13px;
    color: #57534e;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
    backdrop-filter: blur(4px);
}

.welcome-pill p {
    margin: 0;
}

.welcome-pill strong {
    color: #1c1917;
    font-weight: 700;
}

.verified-dot {
    width: 7px;
    height: 7px;
    background: #16a34a;
    border-radius: 50%;
    display: inline-block;
}

.pill-divider {
    color: #a8a29e;
    margin: 0 2px;
}

.inline-phone-reset {
    margin: 0;
    display: inline-flex;
    align-items: center;
}

.inline-phone-reset button {
    background: transparent;
    border: 0;
    color: #b91c1c;
    cursor: pointer;
    font-weight: 600;
    font-size: 13px;
    padding: 0;
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color 0.15s;
}

.inline-phone-reset button:hover {
    color: #7f1d1d;
}

.intro {
    padding: 16px 20px 14px;
    max-width: 880px;
    margin: 0 auto;
    text-align: center;
}

.intro .tree-logo {
    height: 82px;
    max-width: 100%;
    margin: 0 auto 10px;
    display: block;
    filter: drop-shadow(0 3px 10px rgba(0, 0, 0, 0.04));
}

.intro h1 {
    font-family: 'Lora', Georgia, serif;
    font-size: 32px;
    font-weight: 700;
    color: #1c1917;
    margin: 0 0 8px;
    letter-spacing: -0.01em;
    text-align: center;
    line-height: 1.25;
}

.intro-tagline {
    font-size: 18.5px;
    font-weight: 600;
    color: #44403c;
    line-height: 1.4;
    margin: 0 auto 8px;
    max-width: 860px;
    text-align: center;
}

.intro-question {
    font-family: 'Lora', Georgia, serif;
    font-style: italic;
    font-size: 22px;
    font-weight: 600;
    color: #b91c1c;
    line-height: 1.35;
    margin: 10px auto 10px;
    max-width: 860px;
    text-align: center;
    text-shadow: 0 1px 1px rgba(255, 255, 255, 0.8);
}

.intro-text {
    font-size: 15.5px;
    line-height: 1.55;
    color: #57534e;
    max-width: 820px;
    margin: 0 auto 12px;
    text-align: center;
}

.intro-action {
    font-size: 15.5px;
    font-weight: 700;
    color: #1c1917;
    line-height: 1.45;
    margin: 0 auto;
    text-align: center;
}

@media (max-width: 640px) {
    .intro h1,
    .otp-panel h1 {
        font-size: 26px;
    }

    .intro-question,
    .otp-lead {
        font-size: 18px;
    }

    .intro-tagline {
        font-size: 16.5px;
    }

    .intro-text,
    .otp-text {
        font-size: 14.5px;
    }
}

.leaf {
    background: transparent;
    border: 0;
    padding: 0;
}

.aspiration-form {
    padding: 24px 0 56px;
}

.aspiration-form select,
.aspiration-form input,
.aspiration-form textarea {
    border-radius: 4px;
}

.share-block {
    align-items: center;
    display: flex;
    flex-direction: column;
    margin-top: 24px;
    max-width: 230px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.share-title {
    color: #fff;
    font-family: Nunito, Arial, sans-serif;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.35;
    margin: 0 0 10px;
}

.share-row {
    align-items: center;
    display: grid;
    grid-template-columns: repeat(5, 34px);
    gap: 8px 10px;
    justify-content: center;
    max-width: 210px;
}

.share-button {
    align-items: center;
    background: rgba(255, 255, 255, 0.92);
    border-radius: 50%;
    display: inline-flex;
    height: 34px;
    justify-content: center;
    transition: transform 0.2s ease, background 0.2s ease;
    width: 34px;
}

.share-button:hover,
.share-button:focus {
    background: #fff;
    transform: translateY(-1px);
}

.share-button img {
    display: block;
    height: 24px;
    width: 24px;
}

.native-share-button {
    border: 0;
    cursor: pointer;
    padding: 0;
}

.share-inline-hint {
    background: rgba(32, 33, 36, 0.94);
    border-radius: 8px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18);
    color: #fff;
    font-family: Nunito, Arial, sans-serif;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.4;
    margin: 10px 0 0;
    max-width: 230px;
    opacity: 0;
    padding: 9px 10px;
    pointer-events: none;
    position: static;
    text-align: center;
    transform: translateY(6px);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.share-inline-hint.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.share-page {
    padding: 48px 20px;
}

.share-hero {
    align-items: center;
    display: grid;
    gap: 36px;
    grid-template-columns: minmax(260px, 480px) minmax(280px, 560px);
    margin: 0 auto;
    max-width: 1120px;
}

.share-hero-image {
    border-radius: 8px;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.12);
    width: 100%;
}

.share-copy {
    max-width: 560px;
}

.share-logo {
    height: 84px;
    margin-bottom: 18px;
    max-width: 100%;
}

.share-kicker {
    color: var(--red);
    font-weight: 800;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.share-copy h1 {
    font-size: 34px;
    line-height: 1.15;
    margin: 0 0 18px;
}

.share-copy blockquote {
    border-left: 4px solid var(--red);
    color: var(--ink);
    font-size: 20px;
    line-height: 1.5;
    margin: 0 0 16px;
    padding-left: 18px;
}

.share-author {
    color: var(--muted);
    font-weight: 800;
    margin-bottom: 26px;
}

.admin-shell, .edit-shell {
    margin: 28px auto;
    max-width: 1180px;
    padding: 0 20px;
}

.admin-header {
    align-items: center;
    display: flex;
    justify-content: space-between;
    margin-bottom: 18px;
}

.admin-header h1, .edit-shell h1 {
    font-size: 28px;
    margin: 0;
}

.table-wrap {
    border: 1px solid var(--line);
    overflow-x: auto;
}

table {
    border-collapse: collapse;
    font-size: 14px;
    width: 100%;
}

th, td {
    border-bottom: 1px solid var(--line);
    padding: 10px;
    text-align: left;
    vertical-align: top;
}

th {
    background: #f6f7f8;
    position: relative;
}

.resizer {
    position: absolute;
    top: 0;
    right: 0;
    width: 6px;
    height: 100%;
    cursor: col-resize;
    user-select: none;
    z-index: 10;
    transition: background-color 0.2s ease;
}

.resizer:hover,
.resizer.resizing {
    background-color: var(--red);
    opacity: 0.8;
    width: 4px;
}

th:hover .resizer {
    background-color: var(--line);
}


.actions {
    white-space: nowrap;
}

.actions a {
    color: var(--red);
    font-weight: 700;
}

.actions form {
    display: inline;
}

.actions button {
    background: transparent;
    border: 0;
    color: var(--red);
    cursor: pointer;
    font-weight: 700;
    padding: 0 0 0 8px;
}

.edit-shell {
    max-width: 620px;
}

.edit-shell textarea {
    min-height: 160px;
}

.check {
    align-items: center;
    display: flex !important;
    gap: 10px;
}

.check input {
    margin: 0;
    width: auto;
}

.form-actions {
    display: flex;
    gap: 12px;
}

.form-actions button {
    width: auto;
}

.form-actions a {
    align-items: center;
    color: var(--red);
    display: inline-flex;
    font-weight: 700;
}

@media (max-width: 760px) {
    .topbar, .topnav {
        align-items: flex-start;
        flex-direction: column;
    }

    .wrapper {
        max-width: 100%;
        overflow-x: auto;
    }

    .wrapper .form {
        max-width: calc(100vw - 32px);
    }

    .share-hero {
        grid-template-columns: 1fr;
    }

    .share-copy h1 {
        font-size: 28px;
    }
}

/* Premium Glassmorphic Form Card Overrides */
.wrapper .aspiration-form {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(237, 28, 36, 0.08);
    border-radius: 16px;
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.05), 0 2px 6px rgba(0, 0, 0, 0.02);
    margin: 48px auto 80px;
    padding: 32px 36px;
    width: 100%;
    max-width: 600px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.wrapper .aspiration-form:hover {
    box-shadow: 0 32px 64px rgba(0, 0, 0, 0.08), 0 4px 12px rgba(0, 0, 0, 0.03);
    transform: translateY(-2px);
}

.wrapper .aspiration-form .form-fields {
    margin-bottom: 20px;
}

/* Styled Inputs */
.wrapper .aspiration-form .form-fields input,
.wrapper .aspiration-form .form-fields textarea {
    background: #fcfdfc;
    border: 1px solid #e1e4e1;
    border-radius: 10px;
    color: var(--ink);
    font-size: 15px;
    font-weight: 500;
    padding: 14px 16px;
    width: 100%;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.wrapper .aspiration-form .form-fields input::placeholder,
.wrapper .aspiration-form .form-fields textarea::placeholder {
    color: #a0a4ab;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.wrapper .aspiration-form .form-fields input:focus,
.wrapper .aspiration-form .form-fields textarea:focus {
    background: #ffffff;
    border-color: var(--red);
    box-shadow: 0 0 0 4px rgba(237, 28, 36, 0.12);
    outline: none;
}

.wrapper .aspiration-form .form-fields textarea {
    min-height: 130px;
    resize: none;
}

/* Helper text styling */
.wrapper .aspiration-form .form-text {
    color: var(--muted);
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 20px;
    text-align: center;
}

/* Submit button styling reset & override */
.wrapper .aspiration-form .form-submit {
    width: 100%;
    display: flex;
    justify-content: center;
}

.wrapper .aspiration-form .form-submit input.submit {
    position: relative !important; /* Reset absolute positioning */
    right: auto !important;
    bottom: auto !important;
    width: 100% !important;
    background: linear-gradient(135deg, var(--red) 0%, #d11219 100%) !important;
    border: none !important;
    border-radius: 10px !important;
    color: #ffffff !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    letter-spacing: 0.5px !important;
    padding: 14px 28px !important;
    text-transform: uppercase !important;
    box-shadow: 0 8px 24px rgba(237, 28, 36, 0.25) !important;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
    cursor: pointer !important;
    text-align: center !important;
}

.wrapper .aspiration-form .form-submit input.submit:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 12px 28px rgba(237, 28, 36, 0.35) !important;
    filter: brightness(1.08) !important;
}

.wrapper .aspiration-form .form-submit input.submit:active {
    transform: translateY(0) scale(0.98) !important;
    box-shadow: 0 4px 12px rgba(237, 28, 36, 0.18) !important;
}

@media (max-width: 760px) {
    .wrapper .aspiration-form {
        padding: 24px 20px;
        margin: 32px auto 60px;
    }
}
