/* Reusable UI components */

/* Phone page specific styles */
.phone-numbers {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-lg);
    margin: var(--spacing-xl) 0;
}

.phone-card {
    background: var(--color-white);
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    border: 1px solid #e2e8f0;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.phone-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.phone-card h3 {
    color: var(--color-dark);
    margin-bottom: var(--spacing-sm);
}

.phone-card p {
    color: var(--color-text);
    line-height: 1.6;
}

.phone-icon {
    font-size: 3rem;
    margin-bottom: var(--spacing-sm);
}

.phone-link {
    display: block;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--color-primary);
    text-decoration: none;
    margin: var(--spacing-sm) 0;
    transition: color 0.3s ease;
}

.phone-link:hover {
    color: var(--color-secondary);
}

.sms-link {
    display: inline-block;
    font-size: 1rem;
    font-weight: 500;
    color: var(--color-secondary);
    text-decoration: none;
    margin: var(--spacing-xs) 0;
    padding: var(--spacing-xs) var(--spacing-sm);
    border: 2px solid var(--color-secondary);
    border-radius: 25px;
    transition: all 0.3s ease;
    background: transparent;
}

.sms-link:hover {
    background: var(--color-secondary);
    color: var(--color-white);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(11, 162, 101, 0.3);
}

.sms-consent {
    background: #f8fafc;
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
    border: 1px solid #e2e8f0;
    margin: var(--spacing-xl) 0;
}

.sms-consent h3 {
    color: var(--color-primary);
    margin-bottom: var(--spacing-sm);
}

.sms-consent p {
    color: var(--color-dark);
    line-height: 1.6;
    margin-bottom: var(--spacing-sm);
}

.sms-consent p:last-child {
    margin-bottom: 0;
}

.privacy-link {
    color: var(--color-white);
    text-decoration: none;
}

.privacy-link:hover {
    text-decoration: underline;
}

.contact-options {
    text-align: center;
    margin: var(--spacing-xl) 0;
}

.contact-options h3 {
    color: var(--color-dark);
    margin-bottom: var(--spacing-sm);
}

.contact-options p {
    color: var(--color-text);
    line-height: 1.6;
}

/* Privacy policy page styles */
.privacy-content {
    max-width: 800px;
    margin: 0 auto;
}

.privacy-section {
    margin: var(--spacing-lg) 0;
    padding: var(--spacing-md);
    background: var(--color-white);
    border-radius: var(--radius-md);
    border: 1px solid #e2e8f0;
}

.privacy-section h2 {
    color: var(--color-primary);
    margin-bottom: var(--spacing-sm);
}

.privacy-section h3 {
    color: var(--color-secondary);
    margin-bottom: var(--spacing-xs);
}

.privacy-section p {
    color: var(--color-dark);
    line-height: 1.6;
    margin-bottom: var(--spacing-sm);
}

.privacy-section p:last-child {
    margin-bottom: 0;
}

.back-to-contact {
    text-align: center;
    margin: var(--spacing-xl) 0;
    padding: var(--spacing-lg);
    background: #f8fafc;
    border-radius: var(--radius-lg);
    border: 1px solid #e2e8f0;
}

.back-to-contact h3 {
    color: var(--color-dark);
    margin-bottom: var(--spacing-sm);
}

.back-to-contact p {
    color: var(--color-text);
    line-height: 1.6;
}

/* Logo and navigation */
.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-icon {
    width: 144px;
    height: 72px;
    display: inline-block;
}

.logo-icon svg {
    width: 100%;
    height: 100%;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 0.7rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--color-text);
    font-weight: 500;
    transition: color 0.3s ease;
    cursor: pointer;
    display: block;
    padding: var(--spacing-xs) 1.2rem;
    border-radius: var(--radius-sm);
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-links a:hover {
    color: var(--color-primary);
}

.nav-links li {
    margin: 0;
    background: var(--color-white);
    transition: box-shadow 0.2s;
    border-radius: var(--radius-sm);
    padding: 0;
    display: flex;
    align-items: center;
}

.nav-links li:hover {
    box-shadow: 0 2px 8px #cce3fa55;
}

/* Buttons */
.cta-button {
    background: var(--gradient-primary);
    color: var(--color-white);
    padding: 0.8rem var(--spacing-lg);
    border: none;
    border-radius: var(--radius-full);
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin: var(--spacing-xs);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-primary);
}

.cta-button.cta-button-large {
    padding: 1.2rem var(--spacing-xl);
    font-size: 1.2rem;
}

.cta-button.cta-button-large:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(12, 85, 194, 0.4);
}

/* Cards */
.step-card, .card {
    background: var(--color-white);
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    border: 1px solid #e2e8f0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.step-card:hover, .card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.card p {
    margin: 0 0 var(--spacing-sm) 0;
    line-height: 1.6;
}

.card p:last-child {
    margin-bottom: 0;
}

.step-number {
    background: var(--gradient-primary);
    color: var(--color-white);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-bottom: var(--spacing-sm);
}

.step-card h3, .card h3 {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-sm);
    color: var(--color-dark);
}

/* Forms */
.form-group {
    margin-bottom: var(--spacing-md);
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: var(--spacing-xs);
    font-weight: 500;
}

.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.1);
    color: var(--color-white);
    font-size: 1rem;
}

.form-group input::placeholder, .form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.story-textarea {
    min-height: 120px;
    resize: vertical;
}

.personas {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: var(--spacing-sm);
    margin: var(--spacing-lg) 0;
}

.persona {
    background: rgba(255, 255, 255, 0.1);
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.persona:hover, .persona.selected {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: scale(1.05);
}

.persona-icon {
    font-size: 2rem;
    margin-bottom: var(--spacing-xs);
}

/* Modals */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    z-index: var(--z-modal);
}

.modal-content {
    background: var(--color-white);
    padding: var(--spacing-xl);
    border-radius: var(--radius-xl);
    max-width: 600px;
    margin: 5% auto;
    position: relative;
    animation: modalAppear 0.3s ease;
}

@keyframes modalAppear {
    from { opacity: 0; transform: translateY(-50px); }
    to { opacity: 1; transform: translateY(0); }
}

.close {
    position: absolute;
    top: var(--spacing-sm);
    right: var(--spacing-md);
    font-size: 2rem;
    cursor: pointer;
    color: #666;
}

.close:hover {
    color: #333;
}

.story-summary {
    background: #f7fafc;
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
    margin: var(--spacing-lg) 0;
    border-left: 4px solid var(--color-primary);
}

.login-form {
    max-width: 600px;
    margin: var(--spacing-lg) auto;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: var(--spacing-lg);
    border-radius: var(--radius-xl);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.panel {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 2.5rem var(--spacing-lg);
    margin-bottom: var(--spacing-xl);
}

.mb-xxl {
    margin-bottom: var(--spacing-xxl) !important;
}

/* Typography components */
.main-heading-bubble {
    display: block;
    width: 100%;
    max-width: 100%;
    background: rgba(255, 255, 255, 0.7);
    color: var(--color-dark);
    border-radius: var(--radius-sm);
    box-shadow: 0 4px 24px rgba(12, 85, 194, 0.08);
    padding: var(--spacing-md) 0;
    margin: 2.5rem 0 var(--spacing-lg) 0;
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    text-align: center;
    position: relative;
    z-index: 2;
}

.subheading-bubble {
    display: inline-block;
    background: var(--color-white);
    color: var(--color-dark);
    border-radius: var(--radius-xl);
    box-shadow: 0 2px 12px rgba(12, 85, 194, 0.06);
    padding: var(--spacing-sm) var(--spacing-lg);
    margin: 0 auto var(--spacing-md) auto;
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: -0.2px;
    text-align: center;
    position: relative;
    z-index: 2;
}

.translucent-info {
    display: block;
    background: rgba(255,255,255,0.45);
    color: var(--color-dark);
    border-radius: var(--radius-sm);
    padding: 1.2rem 2.5rem;
    margin: var(--spacing-sm) 0;
    font-size: 1.35rem;
    font-weight: 600;
    text-align: center;
    width: 100%;
    box-shadow: 0 2px 12px rgba(12, 85, 194, 0.06);
    letter-spacing: -0.2px;
}

.hero-callout {
    display: block;
    font-size: 2.6rem;
    font-weight: 900;
    color: var(--color-primary);
    text-align: center;
    margin: 2.5rem auto 2.2rem auto;
    text-shadow: 0 4px 32px rgba(12,85,194,0.18), 0 1.5px 6px rgba(0,0,0,0.10);
    letter-spacing: -1px;
    line-height: 1.1;
}

.hero-section {
    width: 100%;
    margin: var(--spacing-xxl) 0 var(--spacing-xl) 0;
    padding: 7rem 0 5rem 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.hero-heading {
    display: block;
    font-size: 5rem;
    font-weight: 900;
    text-align: center;
    margin: 0 0 var(--spacing-md) 0;
    letter-spacing: -2.5px;
    line-height: 1.05;
    color: var(--color-white);
    text-shadow: 15px 15px 20px #011531d7;
}

.hero-text {
    font-size: 1.4rem;
    color: var(--color-white);
    text-align: center;
    max-width: 700px;
    margin: 0 auto 0 auto;
    font-weight: 500;
    line-height: 1.5;
    text-shadow: 0 2px 12px rgba(0,0,0,0.5);
}

/* Value proposition - comprehensive version (keep this one) */
.value-proposition {
    display: block;
    background: rgba(255,255,255,0.95);
    color: var(--color-dark);
    border-radius: var(--radius-md);
    padding: 1.2rem 2.2rem;
    margin: var(--spacing-xl) auto var(--spacing-xl) auto;
    font-size: 1.3rem;
    text-align: center;
    max-width: 700px;
    box-shadow: 0 2px 12px rgba(12, 85, 194, 0.06);
    font-weight: 500;
}

.value-proposition p {
    margin: 0 0 var(--spacing-md) 0;
    line-height: 1.6;
}

.value-proposition p:last-child {
    margin-bottom: 0;
}

/* Hamburger menu */
.hamburger {
    display: none; /* Will be overridden in responsive.css */
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: var(--z-hamburger);
    padding: 0;
    box-sizing: border-box;
    position: relative;
}

.hamburger-bar {
    width: 28px;
    height: 4px;
    background: var(--color-primary);
    margin: 4px 0;
    border-radius: 2px;
    transition: all 0.3s cubic-bezier(.4,2,.6,1), opacity 0.3s;
    display: block;
    position: relative;
    left: 0;
}

.hamburger[aria-expanded="true"] .hamburger-bar:nth-child(1) {
    transform: translateY(12px) rotate(45deg);
}

.hamburger[aria-expanded="true"] .hamburger-bar:nth-child(2) {
    opacity: 0;
}

.hamburger[aria-expanded="true"] .hamburger-bar:nth-child(3) {
    transform: translateY(-12px) rotate(-45deg);
}

/* Custom dropdown styling for connect form */
.form-group select, .form-group select option {
    background: rgba(255, 255, 255, 0.1);
    color: var(--color-white);
}

.form-group select {
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: var(--radius-md);
    padding: 0.8rem;
    font-size: 1rem;
    box-shadow: 0 2px 8px rgba(12, 85, 194, 0.08);
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg fill='white' height='16' viewBox='0 0 24 24' width='16' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/></svg>");
    background-repeat: no-repeat;
    background-position-x: 98%;
    background-position-y: 50%;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.form-group select option {
    background: var(--color-white) !important;
    color: #222 !important;
}

/* Promo Banner */
@keyframes gentlePulse {
    0%, 100% {
        box-shadow: 0 4px 20px rgba(255, 255, 255, 0.4), 0 0 20px rgba(255, 255, 255, 0.3);
    }
    50% {
        box-shadow: 0 4px 30px rgba(255, 255, 255, 0.6), 0 0 30px rgba(255, 255, 255, 0.5);
    }
}

.promo-banner {
    background: linear-gradient(135deg, var(--color-secondary) 0%, #0d8a5a 100%);
    border-radius: var(--radius-lg);
    padding: var(--spacing-md) var(--spacing-lg);
    margin: var(--spacing-lg) auto;
    max-width: 800px;
    box-shadow: 0 4px 20px rgba(255, 255, 255, 0.4), 0 0 20px rgba(255, 255, 255, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: gentlePulse 3s ease-in-out infinite;
}

.promo-banner:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(255, 255, 255, 0.6), 0 0 40px rgba(255, 255, 255, 0.5);
    animation: none;
}

.promo-banner-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    text-decoration: none;
    color: var(--color-white);
    font-weight: 600;
    font-size: 1.5rem;
}

.promo-banner-emoji {
    font-size: 1.8rem;
}

.promo-banner-text {
    flex: 1;
    text-align: center;
}

@media (max-width: 768px) {
    .promo-banner-link {
        flex-direction: column;
        gap: var(--spacing-xs);
        font-size: 1.2rem;
    }
    
    .promo-banner-emoji {
        font-size: 1.5rem;
    }
}

/* ============================================
   Utility Classes - DRY Styling Patterns
   ============================================ */

/* Centered Content Containers */
.content-center-800 {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.content-center-900 {
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.content-center-700 {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.content-container-900 {
    max-width: 900px;
    margin: 0 auto;
}

.content-container-800 {
    max-width: 800px;
    margin: 0 auto;
}

/* Typography Utilities */
.text-muted {
    font-size: 1.1rem;
    color: var(--color-muted);
}

.text-muted-sm {
    font-size: 0.95rem;
    color: var(--color-muted);
}

.text-lead {
    font-size: 1.2rem;
    line-height: 1.7;
    margin-bottom: var(--spacing-md);
}

.text-body {
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: var(--spacing-md);
}

.text-body-lg {
    font-size: 1.2rem;
    line-height: 1.7;
    margin-bottom: var(--spacing-md);
}

/* Heading Utilities */
.heading-primary {
    color: var(--color-primary);
    margin-bottom: var(--spacing-xs);
}

.section-heading {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-sm);
    color: var(--color-primary);
}

/* Image Utilities */
.content-image {
    width: 100%;
    max-width: 900px;
    height: auto;
    border-radius: var(--radius-md);
    margin: 0 auto var(--spacing-lg) auto;
    display: block;
    box-shadow: var(--shadow-md);
}

/* Container Utilities */
.container-narrow {
    max-width: 800px;
    margin: var(--spacing-xl) auto;
    text-align: center;
}

.panel-horizontal-padding {
    margin-left: var(--spacing-lg);
    margin-right: var(--spacing-lg);
}

/* Spacing Utilities */
.mb-lg {
    margin-bottom: var(--spacing-lg);
}

.mb-md {
    margin-bottom: var(--spacing-md);
}

.mb-sm {
    margin-bottom: var(--spacing-sm);
}

/* Grid Utilities */
.grid-auto-fit-250 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-lg);
    text-align: center;
}

.grid-auto-fit-300 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-lg);
}

/* Button/Link Utilities */
.cta-button-full {
    width: 100%;
    text-align: center;
    display: block;
}

/* Text Alignment Utilities */
.text-center {
    text-align: center;
}

/* Color Utilities */
.text-dark {
    color: var(--color-dark);
}

.text-primary {
    color: var(--color-primary);
}