:root {
    /* Colors - HSL format */
    --color-primary: hsl(217, 91%, 60%);
    --color-primary-light: hsl(217, 100%, 70%);
    --color-primary-dark: hsl(217, 91%, 50%);
    --color-primary-darker: hsl(213, 76%, 21%);
    --color-accent: hsl(142, 69%, 58%);
    --color-accent-dark: hsl(142, 69%, 48%);

    --color-background: hsl(0, 0%, 100%);
    --color-foreground: hsl(218, 54%, 20%);
    --color-muted: hsl(210, 17%, 95%);
    --color-muted-foreground: hsl(218, 27%, 55%);
    --color-border: hsl(220, 18%, 87%);

    /* Gradients */
    --gradient-hero: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    --gradient-card: linear-gradient(145deg, var(--color-background), hsl(210, 17%, 98%));
    --gradient-cta: linear-gradient(135deg, var(--color-accent), var(--color-accent-dark));

    /* Shadows */
    --shadow-soft: 0 2px 8px -2px hsla(217, 91%, 60%, 0.1);
    --shadow-medium: 0 4px 16px -4px hsla(217, 91%, 60%, 0.15);
    --shadow-large: 0 8px 32px -8px hsla(217, 91%, 60%, 0.2);

    /* Typography */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

    /* Transitions */
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);

    /* Spacing */
    --container-max-width: 1280px;
    --container-padding: 1rem;
}

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

body {
    font-family: var(--font-family);
    background-color: var(--color-background);
    color: var(--color-foreground);
    line-height: 1.6;
}

.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

/* Header Styles */
.header {
    background-color: var(--color-background);
    border-bottom: 1px solid var(--color-border);
    box-shadow: var(--shadow-soft);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 4rem;
}

.logo {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--color-primary-darker);
}

.logo span {
    color: var(--color-primary);
}

/* Enhanced Professional Header Contact */
.header-contact {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    margin-left: 1rem;
}

.professional-phone-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--color-primary-darker);
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: var(--transition-smooth);
    position: relative;
}

@media (min-width: 640px) {
    .phone-label {
        display: inline;
        font-size: 1rem;
        font-weight: 500;
        opacity: 0.85;
    }

    .phone-number {
        font-size: 1.1rem;
        font-weight: 700;
        letter-spacing: 0.02em;
    }
}

.status-badge {
    background: var(--color-accent);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 1rem;
    padding: 0.2rem 0.75rem;
    margin-left: 0.5rem;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.07);
    letter-spacing: 0.03em;
    display: inline-block;
}

.agent-subtext {
    font-size: 0.75rem;
    color: var(--color-muted-foreground);
    margin-top: 0.25rem;
    text-align: right;
    line-height: 1.3;
}

.agent-subtext strong {
    color: var(--color-primary);
    font-weight: 600;
}

@media (min-width: 640px) {
    .phone-number {
        display: inline;
    }
}

/* Hero Section */
.hero {
    padding: 3rem 0 5rem;
    background: linear-gradient(135deg, hsla(217, 91%, 60%, 0.05), var(--color-background));
}

.hero-content {
    display: grid;
    gap: 3rem;
    align-items: start;
}

@media (min-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
    }
}

/* Hero Text */
.hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

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

@media (min-width: 1024px) {
    .hero-title {
        font-size: 3rem;
    }
}

@media (min-width: 1280px) {
    .hero-title {
        font-size: 3.75rem;
    }
}

.hero-description {
    font-size: 1.25rem;
    color: var(--color-muted-foreground);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

/* Benefits List */
.benefits-list {
    margin-bottom: 2rem;
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.benefit-icon {
    color: var(--color-accent);
    width: 1.25rem;
    height: 1.25rem;
    flex-shrink: 0;
}

/* Trust Indicators */
.trust-indicators {
    display: flex;
    gap: 2rem;
    padding-top: 1.5rem;
    flex-wrap: wrap;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.trust-icon {
    color: var(--color-primary);
    width: 1.5rem;
    height: 1.5rem;
}

.trust-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-foreground);
}

.trust-subtitle {
    font-size: 0.75rem;
    color: var(--color-muted-foreground);
}

/* Hero Images */
.hero-image-desktop {
    display: none;
    margin-top: 2rem;
}

@media (min-width: 1024px) {
    .hero-image-desktop {
        display: block;
    }
}

.hero-image-mobile {
    margin-top: 2rem;
}

@media (min-width: 1024px) {
    .hero-image-mobile {
        display: none;
    }
}

.hero-image-desktop img,
.hero-image-mobile img {
    width: 100%;
    border-radius: 0.5rem;
    box-shadow: var(--shadow-large);
}

/* Form Styles */
.form-container {
    display: flex;
    justify-content: center;
}

@media (min-width: 1024px) {
    .form-container {
        justify-content: flex-end;
    }
}

.form-card {
    width: 100%;
    max-width: 33rem;
    background: var(--gradient-card);
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: var(--shadow-large);
}

.form-header {
    background: var(--gradient-hero);
    text-align: center;
    padding: 2rem;
}

.form-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-background);
    margin-bottom: 0.5rem;
}

.form-header p {
    color: var(--color-background);
}

.form-content {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 1rem;
}

.form-group label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-foreground);
    margin-bottom: 0.25rem;
}

.form-group input {
    padding: 0.75rem;
    border: 1px solid var(--color-border);
    border-radius: 0.5rem;
    font-size: 1rem;
    transition: var(--transition-smooth);
    background-color: var(--color-background);
}

.form-group input:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 2px hsla(217, 91%, 60%, 0.2);
}

.form-helper {
    font-size: 0.75rem;
    color: var(--color-muted-foreground);
    margin-top: 0.25rem;
}

.submit-btn {
    background: var(--gradient-hero);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-size: 1.125rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
    width: 100%;
}

.submit-btn:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.submit-btn:disabled {
    background: #94a3b8;
    cursor: not-allowed;
    opacity: 0.6;
    transform: none;
}

.submit-btn:disabled:hover {
    opacity: 0.6;
    transform: none;
}

.form-footer {
    padding-top: 1rem;
    border-top: 1px solid var(--color-border);
    margin-top: 1rem;
}

.form-footer-image {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    padding: 10px;
    gap: 0px 26px;
}

.form-footer-image img {
    object-fit: contain;
}

.security-badges {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.badge {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.75rem;
    color: var(--color-muted-foreground);
}

.badge i {
    width: 0.75rem;
    height: 0.75rem;
}

/* Success Card */
.success-card {
    padding: 26px 20px;
    text-align: center;
}

.success-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.success-icon {
    width: 4rem;
    height: 4rem;
    color: var(--color-accent);
}

.success-content h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-foreground);
}

.success-content p {
    color: var(--color-muted-foreground);
    line-height: 1.6;
}

.call-info {
    background-color: hsla(217, 91%, 60%, 0.1);
    padding: 1rem;
    border-radius: 0.5rem;
    width: 100%;
}

.call-info p {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-primary);
    margin: 0;
}

.call-now-btn {
    background: var(--gradient-cta);
    color: white;
    text-decoration: none;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    transition: var(--transition-smooth);
    display: inline-block;
}

.call-now-btn:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

/* Footer */
.footer {
    background-color: var(--color-foreground);
    color: white;
    padding: 3rem 0;
}

.footer-content {
    display: grid;
    gap: 2rem;
}

@media (min-width: 768px) {
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

.footer-column h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.footer-column h4 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.footer-column p {
    color: #d1d5db;
    margin-bottom: 1rem;
    line-height: 1.7;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.contact-item i {
    color: var(--color-primary-light);
    width: 1rem;
    height: 1rem;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: #d1d5db;
    text-decoration: none;
    transition: var(--transition-smooth);
}

.footer-links a:hover {
    color: white;
}

.footer-cta-btn {
    background: var(--color-accent);
    color: white;
    text-decoration: none;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    transition: var(--transition-smooth);
    display: inline-block;
}

.footer-cta-btn:hover {
    background-color: var(--color-accent-dark);
}

.footer-bottom {
    border-top: 1px solid #4b5563;
    margin-top: 2rem;
    padding-top: 2rem;
}

.footer-bottom-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

@media (min-width: 768px) {
    .footer-bottom-content {
        flex-direction: row;
        justify-content: space-between;
    }
}

.footer-bottom-links {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.form-footer-image {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    padding: 20px;
    gap: 0px 20px;
}

.footer-bottom-links a {
    color: #9ca3af;
    text-decoration: none;
    font-size: 0.875rem;
    transition: var(--transition-smooth);
}

.footer-bottom-links a:hover {
    color: white;
}

.disclaimer {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #4b5563;
}

.disclaimer p {
    font-size: 0.75rem;
    color: #6b7280;
    line-height: 1.6;
}

/* Toast Notification */
.toast {
    position: fixed;
    top: 1rem;
    right: 1rem;
    background-color: white;
    border: 1px solid var(--color-border);
    border-radius: 0.5rem;
    box-shadow: var(--shadow-large);
    padding: 1rem;
    z-index: 9999;
    max-width: 400px;
    animation: slideIn 0.3s ease-out;
}

.toast.error {
    border-color: hsl(0, 84%, 60%);
    background-color: hsl(0, 84%, 95%);
}

.toast-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

#toast-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--color-muted-foreground);
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

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

/* Responsive Design */
@media (max-width: 700px) {
    .container {
        padding: 0 1rem;
    }

    .hero {
        padding: 2rem 0 3rem;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-description {
        font-size: 1.125rem;
    }

    .trust-indicators {
        gap: 1rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .header-contact .phone-number,
    .header-contact .status-badge,
    .header-contact .agent-subtext {
        display: none;
    }

    .phone-icon-bg {
        animation: phone-vibrate 4.2s linear infinite;
    }

    .step-btns {
        flex-wrap: wrap;
    }
}

@keyframes phone-vibrate {
    0% {
        transform: translateX(0);
    }

    2% {
        transform: translateX(-2px);
    }

    4% {
        transform: translateX(2px);
    }

    6% {
        transform: translateX(-2px);
    }

    8% {
        transform: translateX(2px);
    }

    10% {
        transform: translateX(-2px);
    }

    12% {
        transform: translateX(2px);
    }

    14% {
        transform: translateX(-2px);
    }

    16% {
        transform: translateX(2px);
    }

    18% {
        transform: translateX(-2px);
    }

    20% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(0);
    }
}

a {
    color: inherit;
    text-decoration: none;
    -webkit-text-decoration-skip: objects;
}


/* Multi-Step Form Styles */
.multi-step-form .form-step {
    display: none;
    animation: fadeIn 0.4s;
}

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

.step-btns {
    display: flex;
    justify-content: space-between;
    margin-top: 1.5rem;
    gap: 1rem;
}

.next-btn,
.prev-btn {
    background: var(--color-primary);
    color: #fff;
    border: none;
    padding: 0.6rem 1.5rem;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    flex-grow: 1;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.next-btn:hover,
.prev-btn:hover {
    background: var(--color-primary-dark);
}

/* Under 65 Alert Styles */
.under-65-alert {
    background: hsl(0, 84%, 95%);
    color: hsl(0, 84%, 30%);
    border: 1px solid hsl(0, 84%, 60%);
    border-radius: 0.5rem;
    padding: 1rem;
    margin: 1rem 0 0.5rem 0;
    font-size: 1rem;
    text-align: center;
    font-weight: 500;
    box-shadow: 0 2px 8px -2px hsla(0, 84%, 60%, 0.08);
}

.under-65-alert .phone-highlight {
    color: var(--color-primary);
    font-size: 1.2em;
    font-weight: bold;
    display: block;
    margin: 0.5rem 0;
}

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

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

.step-headline {
    text-align: center;
    margin-bottom: 1.25rem;
}

.step-headline h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-primary-darker);
    margin-bottom: 0.25rem;
}

.step-subtext {
    color: var(--color-muted-foreground);
    font-size: 1rem;
    margin-bottom: 0;
}

.form-card hr {
    border: none;
    border-top: 2px solid var(--color-border);
    margin: 1.5rem 0 1.5rem 0;
    width: 100%;
    opacity: 0.7;
}

.form-consent {
    margin-top: 1.25rem;
    color: var(--color-muted-foreground);
    font-size: 0.85rem;
    line-height: 1.5;
    text-align: left;
}

.form-consent a {
    color: var(--color-primary);
    text-decoration: underline;
    word-break: break-all;
}

#mobile-form-slot {
    margin: 2rem 0;
    display: flex;
    justify-content: center;
}

#desktop-form-slot {
    display: flex;
    justify-content: flex-end;
}

@media (min-width: 1024px) {
    #mobile-form-slot {
        display: none;
    }
}

@media (max-width: 1023px) {
    #desktop-form-slot {
        display: none;
    }
}
