/* Reset & Variables */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --navy-dark: #0f1629;
    --navy-medium: #1e293b;
    --navy-light: #334155;
    --blue: #d4af37;
    --blue-dark: #b8942e;
    --blue-light: #e8c84a;
    --slate-50: #f8fafc;
    --slate-100: #f1f5f9;
    --slate-200: #e2e8f0;
    --slate-300: #cbd5e1;
    --slate-400: #94a3b8;
    --slate-500: #64748b;
    --slate-600: #475569;
    --slate-700: #334155;
    --slate-800: #1e293b;
    --slate-900: #0f172a;
    --green: #10b981;
    --red: #ef4444;
    --primary-dark: #0f1629;
    --primary-gold: #d4af37;
    --text-light: #ffffff;
    --transition-normal: all 0.3s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, 'Helvetica Neue', sans-serif;
    color: var(--slate-700);
    background: var(--slate-50);
    line-height: 1.6;
}

.container {
    max-width: 100%;
    margin: 0 auto;
    padding: 0 5%;
}

/* Navbar */
.navbar {
    background: white;
    border-bottom: 1px solid var(--slate-200);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 16px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-logo img {
    height: 32px;
}

.nav-logo span {
    font-size: 1.25rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--blue), var(--blue-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-link {
    color: var(--slate-600);
    text-decoration: none;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 6px;
    border: 1px solid var(--slate-200);
    font-size: 0.9rem;
    transition: all 0.2s;
}

.nav-link:hover {
    background: var(--slate-100);
    color: var(--slate-900);
}

/* Hero */
.hero {
    background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy-medium) 100%);
    color: white;
    padding: 60px 24px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 50%, rgba(59, 130, 246, 0.15) 0%, transparent 50%);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 12px;
    letter-spacing: -0.02em;
}

.hero p {
    font-size: 1.15rem;
    color: var(--slate-300);
}

/* Main Content */
.main-content {
    padding: 40px 0 80px;
}

/* Tabs */
.tabs {
    display: flex;
    gap: 0;
    margin-bottom: 30px;
    border-bottom: 2px solid var(--slate-200);
}

.tab-btn {
    flex: 1;
    padding: 16px 24px;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    color: var(--slate-500);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s;
    margin-bottom: -2px;
}

.tab-btn:hover {
    color: var(--slate-700);
}

.tab-btn.active {
    color: var(--blue);
    border-bottom-color: var(--blue);
}

/* How It Works */
.how-it-works {
    margin-bottom: 40px;
}

.hiw-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.hiw-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: white;
    border: 1px solid var(--slate-200);
    border-radius: 8px;
}

.hiw-number {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--blue), var(--blue-dark));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
}

.hiw-text {
    font-size: 0.9rem;
    color: var(--slate-600);
    line-height: 1.4;
}

/* Tab Content */
.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Forms */
.partner-form {
    background: white;
    border: 1px solid var(--slate-200);
    border-radius: 12px;
    padding: 32px;
}

.form-section {
    margin-bottom: 32px;
    padding-bottom: 32px;
    border-bottom: 1px solid var(--slate-100);
}

.form-section:last-of-type {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.form-section h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--slate-900);
    margin-bottom: 20px;
}

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

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

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

.req {
    color: var(--red);
}

.opt {
    color: var(--slate-400);
    font-weight: 400;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group input[type="url"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--slate-300);
    border-radius: 6px;
    font-size: 0.95rem;
    font-family: inherit;
    transition: border-color 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--blue);
}

.form-group textarea {
    resize: vertical;
}

.form-hint {
    display: block;
    margin-top: 6px;
    font-size: 0.85rem;
    color: var(--slate-500);
}

/* Checkboxes */
.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 0.9rem;
    color: var(--slate-700);
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    margin-top: 3px;
    cursor: pointer;
}

.checkbox-group {
    padding: 16px;
    background: var(--slate-50);
    border-radius: 6px;
    margin-bottom: 20px;
}

.checkbox-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    padding: 12px;
    background: var(--slate-50);
    border-radius: 6px;
}

/* Geography grid — keep it compact for 5 items */
.geo-grid {
    grid-template-columns: repeat(3, 1fr);
}

/* Radio group */
.radio-group {
    display: flex;
    gap: 24px;
    padding: 8px 0;
}

.radio-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.95rem;
    color: var(--slate-700);
    cursor: pointer;
    font-weight: 500;
}

.radio-label input[type="radio"] {
    cursor: pointer;
    accent-color: var(--blue);
}

/* Section subtitle */
.section-subtitle {
    margin-bottom: 16px;
    color: var(--slate-500);
    font-size: 0.9rem;
}

/* Collaboration Options */
.collab-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 8px;
}

.collab-option {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    border: 2px solid var(--slate-200);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    background: white;
}

.collab-option:hover {
    border-color: var(--blue);
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.08);
}

.collab-option input[type="checkbox"] {
    margin-top: 3px;
    cursor: pointer;
    accent-color: var(--blue);
}

.collab-option:has(input:checked) {
    border-color: var(--blue);
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.04), rgba(96, 165, 250, 0.04));
}

.collab-content {
    flex: 1;
}

.collab-title {
    font-weight: 600;
    color: var(--slate-900);
    font-size: 0.95rem;
    margin-bottom: 2px;
}

.collab-desc {
    font-size: 0.84rem;
    color: var(--slate-500);
    line-height: 1.4;
}

/* Buttons */
.btn-primary,
.btn-secondary {
    padding: 12px 28px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-primary {
    width: 100%;
    background: linear-gradient(135deg, var(--blue), var(--blue-dark));
    color: white;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn-secondary {
    background: white;
    color: var(--slate-700);
    border: 1px solid var(--slate-300);
}

.btn-secondary:hover {
    background: var(--slate-50);
}

/* Success / Error banners */
.success-banner {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 20px;
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    border-radius: 8px;
    margin-bottom: 20px;
    color: #065f46;
    font-size: 0.95rem;
    line-height: 1.5;
}

.success-icon-inline {
    width: 28px;
    height: 28px;
    min-width: 28px;
    background: var(--green);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
    margin-top: 2px;
}

.error-banner {
    padding: 16px 20px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 8px;
    margin-bottom: 20px;
    color: #991b1b;
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Conditional field animation */
.conditional-field {
    overflow: hidden;
    transition: max-height 0.3s ease, opacity 0.3s ease;
}

/* GDPR Group */
.gdpr-group {
    margin-top: 16px;
}

.gdpr-group .checkbox-label span {
    font-size: 0.84rem;
    line-height: 1.6;
    color: var(--slate-500);
}

.gdpr-group .checkbox-label span a {
    color: var(--blue);
    text-decoration: underline;
}

/* Deal Type Chips */
.deal-type-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 8px;
}

.deal-chip {
    cursor: pointer;
}

.deal-chip input {
    display: none;
}

.deal-chip span {
    display: inline-block;
    padding: 10px 20px;
    border: 2px solid var(--slate-200);
    border-radius: 24px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--slate-700);
    background: white;
    transition: all 0.2s;
    cursor: pointer;
}

.deal-chip span:hover {
    border-color: var(--blue);
    color: var(--blue);
}

.deal-chip input:checked + span {
    background: var(--blue);
    border-color: var(--blue);
    color: white;
}

/* Geographic Map */
.geo-hidden {
    display: none !important;
}

.geo-map-container {
    background: var(--navy-dark);
    border-radius: 12px;
    padding: 24px;
    margin-top: 12px;
    overflow: hidden;
}

.geo-map {
    width: 100%;
    height: auto;
    max-height: 400px;
}

.geo-region {
    fill: var(--navy-light);
    stroke: var(--slate-600);
    stroke-width: 1.5;
    cursor: pointer;
    transition: fill 0.25s, stroke 0.25s;
}

.geo-region:hover {
    fill: var(--slate-500);
}

.geo-region.active {
    fill: var(--blue);
    stroke: var(--blue-light);
    stroke-width: 2;
}

.geo-label {
    fill: rgba(255,255,255,0.6);
    font-size: 14px;
    font-family: 'Segoe UI', Tahoma, sans-serif;
    pointer-events: none;
    text-anchor: middle;
    font-weight: 500;
}

.geo-region.active + text,
text.active-label {
    fill: #fff;
}

.geo-selected {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
    min-height: 24px;
}

.geo-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: var(--blue);
    color: white;
    border-radius: 20px;
    font-size: 0.84rem;
    font-weight: 500;
}

.geo-tag .remove-geo {
    cursor: pointer;
    opacity: 0.7;
    font-size: 1rem;
    line-height: 1;
}

.geo-tag .remove-geo:hover {
    opacity: 1;
}

/* FAQ Section */
.faq-section {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid var(--slate-200);
}

.faq-section h2 {
    font-size: 1.4rem;
    color: var(--navy-dark);
    margin-bottom: 24px;
}

.faq-item {
    border: 1px solid var(--slate-200);
    border-radius: 8px;
    margin-bottom: 10px;
    overflow: hidden;
}

.faq-q {
    width: 100%;
    background: white;
    border: none;
    padding: 18px 24px;
    text-align: left;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--navy-dark);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.2s;
    font-family: inherit;
}

.faq-q:hover {
    background: var(--slate-50);
}

.faq-q::after {
    content: '+';
    font-size: 1.3rem;
    color: var(--blue);
    font-weight: 400;
    transition: transform 0.2s;
    flex-shrink: 0;
    margin-left: 16px;
}

.faq-q.open::after {
    content: '−';
}

.faq-a {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-a.open {
    max-height: 300px;
    padding: 0 24px 20px;
}

.faq-a p {
    color: var(--slate-600);
    line-height: 1.7;
    font-size: 0.92rem;
}

/* Footer */
footer {
    background-color: var(--primary-dark);
    padding: 70px 0 20px;
    color: var(--text-light);
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
}

.footer-logo {
    margin-bottom: 20px;
}

.footer-logo img {
    height: 45px;
}

.footer-about p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 20px;
}

.footer-social {
    display: flex;
    gap: 15px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    text-decoration: none;
    transition: var(--transition-normal);
}

.footer-social a:hover {
    background-color: var(--primary-gold);
    color: var(--primary-dark);
}

.footer-social a i {
    font-style: normal;
    font-weight: 700;
}

.footer-social a svg {
    display: block;
}

.footer-title {
    font-size: 1.2rem;
    margin-bottom: 25px;
    color: var(--primary-gold);
}

.footer-links ul {
    list-style: none;
    padding: 0;
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links ul li a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: var(--transition-normal);
}

.footer-links ul li a:hover {
    color: var(--primary-gold);
    padding-left: 5px;
}

.footer-contact-item {
    display: flex;
    margin-bottom: 15px;
    color: rgba(255, 255, 255, 0.7);
}

.footer-contact-item i {
    margin-right: 10px;
    color: var(--primary-gold);
}

.footer-bottom {
    margin-top: 50px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .hiw-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

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

    .checkbox-grid {
        grid-template-columns: 1fr;
    }

    .geo-grid {
        grid-template-columns: 1fr;
    }

    .partner-form {
        padding: 24px;
    }

    .tab-btn {
        font-size: 0.9rem;
        padding: 14px 16px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 40px 20px;
    }

    .hero h1 {
        font-size: 1.75rem;
    }

    .nav-container {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }

    .radio-group {
        flex-direction: column;
        gap: 12px;
    }
}
