@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=TikTok+Sans:wght@400;500;700;800;900&display=swap");

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: #ffffff;
    color: #37352f;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

/* Header */
.main-header {
    background-color: #1a1a1a;
    padding: 20px 0;
    text-align: center;
    color: white;
    height: 120px;
    /* Approximate height based on screenshot */
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-container {
    font-family: "TikTok Sans", system-ui, sans-serif;
    font-size: 24px;
    font-weight: 300;
    letter-spacing: -0.5px;
}

.logo-banana {
    font-size: 32px;
    vertical-align: middle;
}

.logo-text {
    vertical-align: middle;
}

.logo-text .light {
    color: #888;
    font-weight: 300;
}

/* Container */
.container {
    max-width: 720px;
    /* Tally usually has a narrow column */
    margin: 0 auto;
    padding: 60px 20px;
    min-height: calc(100vh - 120px);
    position: relative;
}

/* Utility to toggle views */
.hidden {
    display: none !important;
}

.view {
    animation: fadeIn 0.4s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Landing Page Styles */
.hero-title {
    font-family: "TikTok Sans", system-ui, sans-serif;
    font-size: 40px;
    font-weight: 800;
    color: #111;
    margin-bottom: 32px;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.hero-description {
    font-size: 18px;
    color: #444;
    margin-bottom: 16px;
}

.hero-sub {
    font-size: 18px;
    color: #111;
    margin-bottom: 40px;
}

.hero-benefits {
    margin: 32px 0 40px 0;
    text-align: left;
    background: #f9f9f9;
    padding: 24px;
    border-radius: 12px;
}

.benefits-list {
    margin-top: 12px;
    margin-left: 20px;
    color: #444;
}

.benefits-list li {
    margin-bottom: 8px;
}

.cta-button {
    background-color: #ffe600;
    /* Vibrant yellow */
    color: #000;
    border: none;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.1s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.cta-button:hover {
    background-color: #edd600;
    transform: translateY(-1px);
}

.cta-button:active {
    transform: translateY(0);
}

/* Form Styles */
.back-link {
    background: none;
    border: none;
    color: #6b7280;
    cursor: pointer;
    font-size: 14px;
    margin-bottom: 40px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.back-link:hover {
    color: #111;
    text-decoration: underline;
}

.form-group {
    margin-bottom: 40px;
}

.form-group label {
    font-family: "TikTok Sans", system-ui, sans-serif;
    display: block;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
    color: #111;
}

.form-group input[type="text"],
.form-group input[type="tel"] {
    width: 100%;
    padding: 12px 0;
    font-size: 18px;
    border: none;
    border-bottom: 1px solid #e5e7eb;
    outline: none;
    transition: border-color 0.2s;
    background: transparent;
}

.form-group input[type="text"]:focus,
.form-group input[type="tel"]:focus {
    border-bottom-color: #111;
}

.form-group input::placeholder {
    color: #d1d5db;
}

/* Multiple Choice Options */
.options-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.option-card {
    display: flex !important;
    flex-direction: row !important;
    /* Enforce row */
    align-items: center !important;
    flex-wrap: nowrap !important;
    padding: 10px 12px;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.1s, border-color 0.1s;
    text-align: left;
}

.option-card:hover {
    background-color: #f9fafb;
    border-color: #d1d5db;
}

/* Hide actual radio button but keep accessible */
.option-card input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.option-card:has(input:checked) {
    background-color: rgba(0, 0, 0, 0.03);
    border-color: #111;
}

.option-letter {
    background-color: #9ca3af;
    color: white;
    font-size: 12px;
    font-weight: 700;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    /* Prevent shrinking */
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    margin-right: 12px;
    text-transform: uppercase;
}

.option-card:has(input:checked) .option-letter {
    background-color: #111;
}

.option-text {
    font-size: 16px;
    color: #374151;
}

.inline-input {
    border: none;
    border-bottom: 1px solid #999;
    background: transparent;
    margin-left: 10px;
    font-size: 16px;
    outline: none;
    width: 150px;
    padding: 2px 4px;
    color: #111;
    pointer-events: auto;
    /* Ensure clickable */
    transition: border-color 0.2s;
}

.inline-input:focus {
    border-bottom-color: #111;
}

/* Multi-step logic styles */
.form-step {
    display: none;
    animation: fadeIn 0.4s ease-in-out;
}

.form-step.active {
    display: block;
}

.step-nav {
    margin-top: 24px;
    display: flex;
    gap: 12px;
}

.btn-next {
    background-color: #111;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
}

.btn-prev {
    background-color: transparent;
    color: #666;
    border: 1px solid #e5e7eb;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
}

/* Hide powered by */
.powered-by {
    display: none !important;
}

.submit-button {
    background-color: #111;
    color: white;
    border: none;
    padding: 14px 28px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    border-radius: 8px;
    cursor: pointer;
    flex: 1;
    /* Take remaining space */
}

.submit-button:hover {
    background-color: #333;
}

/* Footer Badge */
/* .powered-by {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: white;
    padding: 8px 12px;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    font-size: 12px;
    font-weight: 500;
    color: #333;
    pointer-events: none;
    /* Just for decoration */
/*     border: 1px solid #efefef;
    z-index: 100;
} */

/* Mobile Responsiveness */
@media (max-width: 600px) {
    .container {
        padding: 40px 20px;
    }

    .hero-title {
        font-size: 32px;
    }
}

/* Link in Bio Styles */
.bio-page {
    background-color: #0a0a0a;
    /* Dark background for premium feel */
    color: #ffffff;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.bio-container {
    max-width: 400px;
    width: 100%;
    padding: 40px 24px;
    text-align: center;
}

.profile-image-container {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, #333, #111);
    border-radius: 50%;
    margin: 0 auto 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #333;
    overflow: hidden;
}

/* .profile-initials removed as it is replaced by image */

.profile-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.bio-name {
    font-family: "TikTok Sans", system-ui, sans-serif;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: -0.02em;
}

.bio-tagline {
    font-size: 16px;
    color: #888;
    margin-bottom: 16px;
    font-weight: 500;
}

.bio-description {
    font-size: 14px;
    color: #666;
    margin-bottom: 32px;
    line-height: 1.6;
}

.bio-links {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.bio-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 24px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.2s, background-color 0.2s;
    font-size: 16px;
}

.bio-button:hover {
    transform: scale(1.02);
}

.bio-button.primary {
    background-color: #ffe600;
    /* Matching the form CTA yellow */
    color: #000;
}

.bio-button.secondary {
    background-color: #1a1a1a;
    color: #fff;
    border: 1px solid #333;
}

.bio-button.secondary:hover {
    background-color: #333;
}

.bio-footer {
    margin-top: 40px;
    font-size: 12px;
    color: #444;
}

.bio-full-image-container {
    margin-top: 40px;
    width: 100%;
    /* Remove fixed max-width to allow it to fill the container (which is already capped at 400px) */
    /* max-width: 320px; */
    margin-left: auto;
    margin-right: auto;
    border-radius: 12px;
    overflow: hidden;
    /* Optional: Add a subtle shadow or specific styling */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    position: relative;
    /* For the gradient overlay */
}

/* Gradient fade transition at the top */
.bio-full-image-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 30%;
    /* Adjust fade height */
    background: linear-gradient(to bottom, #0a0a0a, transparent);
    pointer-events: none;
    z-index: 2;
}

/* Gradient fade transition at the bottom */
.bio-full-image-container::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 30%;
    /* Adjust fade height */
    background: linear-gradient(to bottom, transparent, #0a0a0a);
    pointer-events: none;
    z-index: 2;
}

.bio-full-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}
