*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
    min-height: 100%;
    margin: 0;
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background-image: url('background-home.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: white;
}

/* NAVBAR */
.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 40px;
    height: 64px;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255,255,255,0.08);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-logo {
    font-size: 1.3rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: white !important;
    text-decoration: none !important;
    display: inline !important;
    height: auto !important;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
}

.nav-links a {
    color: rgba(255,255,255,0.75) !important;
    text-decoration: none !important;
    font-size: 0.88rem;
    font-weight: 500;
    transition: color 0.2s;
    display: inline !important;
    height: auto !important;
}

.nav-links a:hover { color: white !important; }

.nav-cta {
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 20px;
    padding: 8px 18px !important;
    color: white !important;
    transition: background 0.2s !important;
    display: inline-block !important;
    height: auto !important;
}

.nav-cta:hover { background: rgba(255,255,255,0.22) !important; }

/* STORIES SECTION */
.stories-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 40px 60px;
}

.testimonials-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
    justify-content: center;
    margin-bottom: 50px;
}

/* CARDS */
.t-card {
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 24px;
    padding: 30px;
    box-shadow: 0 8px 32px 0 rgba(0,0,0,0.2);
    flex: 1 1 280px;
    max-width: 380px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.5s ease, transform 0.5s ease,
                background 0.3s cubic-bezier(0.4,0,0.2,1),
                box-shadow 0.3s cubic-bezier(0.4,0,0.2,1);
}

.t-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.t-card:hover {
    background: rgba(255,255,255,0.25);
    box-shadow: 0 15px 45px rgba(0,0,0,0.3);
}

.t-card-featured {
    flex: 1 1 100%;
    max-width: 100%;
    flex-direction: row;
    align-items: flex-start;
    gap: 28px;
}

.t-card-featured .t-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.t-card-featured .t-top {
    flex-direction: column;
    align-items: flex-start;
}

.t-card-featured .avatar {
    width: 54px;
    height: 54px;
    font-size: 15px;
}

.t-card-featured .t-quote { font-size: 16px; }

@media (max-width: 620px) {
    .t-card-featured { flex-direction: column; }
}

.t-top {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.avatar {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    border: 1px solid rgba(255,255,255,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    flex-shrink: 0;
}

.t-name {
    font-size: 15px;
    font-weight: 700;
    color: #fff;
}

.t-condition {
    font-size: 12px;
    color: rgba(255,255,255,0.6);
    margin-top: 2px;
}

.t-quote {
    font-size: 14.5px;
    font-style: italic;
    color: rgba(255,255,255,0.85);
    line-height: 1.75;
    padding-left: 14px;
    border-left: 2px solid rgba(255,255,255,0.3);
    flex: 1;
    margin: 0;
}

.t-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.t-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 600;
    color: #fff;
    background: rgba(255,255,255,0.18);
    border: 1px solid rgba(255,255,255,0.25);
    padding: 4px 12px;
    border-radius: 20px;
}

.t-badge-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #7dffb3;
    flex-shrink: 0;
}

.t-time {
    font-size: 11px;
    color: rgba(255,255,255,0.45);
}

/* DIVIDER */
.divider {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 40px;
    color: rgba(255,255,255,0.45);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(255,255,255,0.15);
}

/* FORM CARD */
.form-card {
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 24px;
    padding: 36px;
    box-shadow: 0 8px 32px 0 rgba(0,0,0,0.2);
    max-width: 680px;
    margin: 0 auto;
}

.form-heading {
    font-size: 22px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 6px;
}

.form-sub {
    font-size: 13.5px;
    color: rgba(255,255,255,0.65);
    line-height: 1.65;
    margin-bottom: 24px;
}

.row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

@media (max-width: 500px) {
    .row-2 { grid-template-columns: 1fr; }
    .form-card { padding: 22px; }
}

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

.field label {
    font-size: 11.5px;
    font-weight: 600;
    color: rgba(255,255,255,0.7);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.optional {
    font-weight: 400;
    opacity: 0.5;
    text-transform: none;
}

.field input,
.field select,
.field textarea {
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    font-size: 14px;
    color: #fff;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 12px;
    padding: 11px 15px;
    outline: none;
    width: 100%;
    transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
    -webkit-appearance: none;
    appearance: none;
}

.field input::placeholder,
.field textarea::placeholder {
    color: rgba(255,255,255,0.35);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
    border-color: rgba(255,255,255,0.5);
    background: rgba(255,255,255,0.18);
    box-shadow: 0 0 0 3px rgba(255,255,255,0.08);
}

.field select {
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='11' height='7' viewBox='0 0 11 7'%3E%3Cpath d='M1 1l4.5 4.5L10 1' stroke='rgba(255,255,255,0.5)' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
}

.field select option { background: #1a1a2e; color: #fff; }

.field textarea {
    resize: vertical;
    min-height: 120px;
    line-height: 1.65;
}

.field input.error,
.field select.error,
.field textarea.error {
    border-color: rgba(255,120,100,0.7);
    box-shadow: 0 0 0 3px rgba(255,100,80,0.12);
}

.error-msg {
    font-size: 11.5px;
    color: rgba(255,160,140,0.9);
    margin-top: -12px;
    margin-bottom: 10px;
    display: none;
}

.char-hint {
    font-size: 11px;
    color: rgba(255,255,255,0.35);
    text-align: right;
    margin-top: -12px;
    margin-bottom: 14px;
}

.char-hint.warn { color: rgba(255,180,120,0.9); }

.anon-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    cursor: pointer;
    user-select: none;
}

.tog-track {
    width: 36px;
    height: 20px;
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 10px;
    position: relative;
    transition: background 0.2s;
    flex-shrink: 0;
}

.tog-track.on {
    background: rgba(125,255,179,0.35);
    border-color: rgba(125,255,179,0.5);
}

.tog-thumb {
    width: 14px;
    height: 14px;
    background: #fff;
    border-radius: 50%;
    position: absolute;
    top: 2px;
    left: 2px;
    transition: transform 0.2s;
    box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.tog-track.on .tog-thumb { transform: translateX(16px); }

.anon-label {
    font-size: 13px;
    color: rgba(255,255,255,0.65);
}

.btn-submit {
    width: 100%;
    padding: 13px;
    background: rgba(255,255,255,0.2);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 12px;
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    letter-spacing: 0.03em;
    transition: background 0.2s, box-shadow 0.2s, transform 0.1s;
}

.btn-submit:hover {
    background: rgba(255,255,255,0.3);
    box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}

.btn-submit:active { transform: scale(0.99); }

.form-note {
    font-size: 11px;
    color: rgba(255,255,255,0.35);
    text-align: center;
    margin-top: 12px;
    line-height: 1.65;
}

.success-state {
    display: none;
    text-align: center;
    padding: 2rem 1rem;
}

.success-icon {
    width: 58px;
    height: 58px;
    background: rgba(125,255,179,0.2);
    border: 1px solid rgba(125,255,179,0.35);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
    font-size: 24px;
}

.success-state h3 {
    font-size: 20px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 8px;
}

.success-state p {
    font-size: 14px;
    color: rgba(255,255,255,0.65);
    line-height: 1.65;
}