:root {
    --red: #ed1c24;
    --ink: #202124;
    --muted: #60646c;
    --line: #e8eaed;
    --surface: #ffffff;
}

body {
    color: var(--ink);
    font-family: Nunito, Arial, sans-serif;
    min-width: 320px;
}

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, .thanks-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, .thanks-screen img {
    max-width: 320px;
    width: 100%;
}

.login-panel h1, .thanks-screen h1, .empty-state h1 {
    font-size: 28px;
    margin: 18px 0 8px;
}

.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%;
}

.otp-panel {
    max-width: 460px;
}

.otp-card {
    text-align: left;
}

.otp-step {
    margin-top: 16px;
}

.otp-status,
.otp-error,
.admin-note {
    margin-top: 16px;
}

.otp-status,
.otp-error {
    color: var(--muted);
}

.otp-error {
    color: #9f1d1d;
}

.admin-note a {
    color: var(--red);
    font-weight: 700;
}

.recaptcha-shell {
    margin: 8px 0 16px;
}

.welcome-strip {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 16px auto 0;
    max-width: 1024px;
    padding: 0 16px;
}

.welcome-strip p,
.inline-phone-reset {
    margin: 0;
}

.inline-phone-reset button {
    background: transparent;
    border: 0;
    color: var(--red);
    cursor: pointer;
    font-weight: 700;
    padding: 0;
}

.intro {
    padding-top: 12px;
}

.tree-logo {
    height: 120px;
    max-width: 100%;
}

.intro h1 {
    font-size: 22px;
    font-weight: 800;
    margin: 16px 0 0;
}

.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;
}

.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;
    }
}
