:root {
    --primary-red: #BE1E2D;
    --primary-slate: #58595B;
    --bg-light: #F4F4F4;
    --card-bg: #FFFFFF;
    --text-dark: #1a1a1a;
    --border-color: #e0e0e0;
    --transition-speed: 0.3s;
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-light);
    color: var(--primary-slate);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Header */
.header {
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 100;
    height: 72px;
    display: flex;
    align-items: center;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo {
    height: 48px; 
    object-fit: contain;
}

.badge {
    background-color: var(--bg-light);
    color: var(--primary-slate);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 1px solid var(--border-color);
}

.nav-link {
    color: var(--primary-slate);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.2s;
}

.nav-link:hover {
    color: var(--primary-red);
}

/* Hero Section */
.hero {
    padding: 80px 0 60px;
    text-align: center;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 16px;
    line-height: 1.1;
    letter-spacing: -1px;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--primary-slate);
    margin-bottom: 48px;
    opacity: 0.9;
}

/* Toggle Switch */
.toggle-container {
    position: relative;
    background: #e0e0e0;
    border-radius: 50px;
    display: inline-flex;
    padding: 4px;
    width: 320px;
    height: 56px;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.06);
}

.toggle-pill {
    position: absolute;
    left: 4px;
    top: 4px;
    width: calc(50% - 4px);
    height: 48px;
    background-color: var(--primary-red);
    border-radius: 40px;
    transition: transform var(--transition-speed) cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1;
}

/* State class for toggle position */
.toggle-container.supplier-active .toggle-pill {
    transform: translateX(100%);
}

.toggle-btn {
    flex: 1;
    background: none;
    border: none;
    z-index: 2;
    font-family: inherit;
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--primary-slate);
    cursor: pointer;
    transition: color 0.3s;
    outline: none;
}

.toggle-btn.active {
    color: white;
}

/* Content Area */
.content-container {
    padding: 40px 0 80px;
    min-height: 600px;
}

.view-panel {
    display: none;
    animation: fadeIn 0.4s ease-out;
}

.view-panel.active {
    display: block;
}

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

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* Default 2 columns desktop */
    gap: 24px;
    margin-bottom: 60px;
}

.feature-card {
    background: var(--card-bg);
    padding: 32px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    box-shadow: 0 2px 8px rgba(0,0,0,0.02);
    transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-red);
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}

.icon-wrapper {
    color: var(--primary-slate);
    width: 48px;
    height: 48px;
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-dark);
}

.feature-card p {
    font-size: 1rem;
    color: #666;
    line-height: 1.5;
}

/* Form Section */
.form-container {
    max-width: 600px;
    margin: 0 auto;
}

.form-card {
    background: var(--card-bg);
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.04);
}

.form-card h2 {
    text-align: center;
    font-size: 1.75rem;
    margin-bottom: 32px;
    color: var(--text-dark);
}

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

.form-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--primary-slate);
}

.form-group input, .form-group select {
    width: 100%;
    padding: 12px 16px;
    font-size: 1rem;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    background-color: #fafafa;
    transition: border-color 0.2s;
    font-family: inherit;
}

.form-group input:focus, .form-group select:focus {
    outline: none;
    border-color: var(--primary-red);
    background-color: white;
}

.submit-btn {
    width: 100%;
    background-color: var(--primary-red);
    color: white;
    border: none;
    padding: 14px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.1s;
}

.submit-btn:hover {
    background-color: #a01925;
}

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

/* Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 1;
    transition: opacity 0.3s;
}

.modal-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

.modal-content {
    background: white;
    padding: 40px;
    border-radius: 12px;
    text-align: center;
    max-width: 400px;
    width: 90%;
    transform: scale(1);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-overlay.hidden .modal-content {
    transform: scale(0.8);
}

.checkmark-circle {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    border-radius: 50%;
    /* background: #e6f7e6; */ /* Optional bg */
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Checkmark Animation */
.checkmark__circle {
    stroke-dasharray: 166;
    stroke-dashoffset: 166;
    stroke-width: 2;
    stroke-miterlimit: 10;
    stroke: var(--primary-red);
    fill: none;
    animation: stroke 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.checkmark {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: block;
    stroke-width: 2;
    stroke: var(--primary-red);
    stroke-miterlimit: 10;
    margin: 0 auto;
    box-shadow: inset 0px 0px 0px var(--primary-red);
    animation: fill .4s ease-in-out .4s forwards, scale .3s ease-in-out .9s both;
}

.checkmark__check {
    transform-origin: 50% 50%;
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
    animation: stroke 0.3s cubic-bezier(0.65, 0, 0.45, 1) 0.8s forwards;
}

@keyframes stroke {
    100% { stroke-dashoffset: 0; }
}

@keyframes scale {
    0%, 100% { transform: none; }
    50% { transform: scale3d(1.1, 1.1, 1); }
}

.modal-content h2 {
    font-size: 1.5rem;
    margin-bottom: 8px;
    color: var(--text-dark);
}

.close-modal-btn {
    background: transparent;
    border: 1px solid var(--border-color);
    padding: 8px 24px;
    border-radius: 4px;
    margin-top: 24px;
    cursor: pointer;
    font-weight: 600;
    color: var(--primary-slate);
    transition: all 0.2s;
}

.close-modal-btn:hover {
    background: #f0f0f0;
    border-color: #ccc;
}

/* Responsiveness */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.25rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr; /* 1 column mobile */
    }

    .form-card {
        padding: 24px;
    }

    .toggle-container {
        width: 100%;
        max-width: 320px;
    }
}
