/* public/css/trade.css */

/* =========================================
   TRADE PAGE - REDESIGN
   Giữ nguyên chức năng, làm mới giao diện
========================================= */

:root {
    --trade-orange: #e0592a;
    --trade-purple: #6f42c1;
    --trade-purple-dark: #56309a;
    --trade-yellow: #f8c84e;
    --trade-dark: #111111;
    --trade-bg: #f7f7f4;
    --trade-cream: #fff7e6;
    --trade-white: #ffffff;
    --trade-text: #444444;
    --trade-muted: #777777;
    --trade-border: rgba(17, 17, 17, 0.12);
    --trade-shadow: 0 18px 45px rgba(0, 0, 0, 0.09);
}

* {
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

body {
    background: var(--trade-bg);
}

.trade-page {
    width: 100%;
    overflow: hidden;
    background: var(--trade-bg);
    color: var(--trade-dark);
    font-family: var(--beer-font-family, Arial, sans-serif);
}

.trade-container,
.container {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 22px;
}

.text-center {
    text-align: center;
}

.max-width-800 {
    max-width: 800px;
    margin: 0 auto;
}

/* =========================================
   HERO
========================================= */

.trade-hero-image {
    position: relative;
    min-height: 58vh;
    background:
        url('https://images.unsplash.com/photo-1605338148802-53697eb4b2ee?ixlib=rb-1.2.1&auto=format&fit=crop&w=1920&q=80')
        center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-align: center;
    overflow: hidden;
}

.trade-hero-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at center, rgba(111, 66, 193, 0.24), transparent 42%),
        linear-gradient(180deg, rgba(0,0,0,0.35), rgba(0,0,0,0.78));
    z-index: 1;
}

.trade-hero-content {
    position: relative;
    z-index: 2;
    max-width: 920px;
    padding: 0 22px;
}

.trade-eyebrow {
    display: inline-block;
    margin: 0 0 14px;
    color: var(--trade-orange);
    font-size: 13px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1.6px;
}

.trade-hero-image .trade-eyebrow {
    color: var(--trade-yellow);
}

.secondary-pagers-hero-header {
    margin: 0;
    color: inherit;
    font-size: clamp(44px, 8vw, 104px);
    line-height: 1.2;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -0.5px;
    font-family: var(--beer-font-family, Arial, sans-serif);
}

.trade-hero-content p:last-child {
    max-width: 760px;
    margin: 22px auto 0;
    color: rgba(255,255,255,0.9);
    font-size: 17px;
    line-height: 1.7;
    font-weight: 700;
}

/* =========================================
   BUTTON
========================================= */

.main-red-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 13px 24px;
    background: var(--trade-purple);
    color: #fff;
    border: 2px solid var(--trade-purple);
    border-radius: 999px;
    text-decoration: none;
    font-weight: 900;
    text-transform: uppercase;
    cursor: pointer;
    transition: 0.25s ease;
}

.main-red-button:hover {
    background: var(--trade-purple-dark);
    border-color: var(--trade-purple-dark);
    transform: translateY(-2px);
    box-shadow: 0 14px 26px rgba(111, 66, 193, 0.28);
}

.trade-scroll-btn {
    margin-top: 24px;
}

/* =========================================
   INTRO
========================================= */

.trade-intro-section {
    padding: 80px 0;
    background: var(--trade-cream);
}

.trade-intro-grid {
    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
    gap: 44px;
    align-items: center;
}

.section-title {
    margin: 0;
    color: var(--trade-dark);
    font-size: clamp(30px, 4.6vw, 56px);
    line-height: 1.2;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -0.5px;
    font-family: var(--beer-font-family, Arial, sans-serif);
}

.trade-paragraph {
    margin: 0 0 18px;
    color: var(--trade-text);
    font-size: 17px;
    line-height: 1.8;
    font-weight: 650;
}

/* =========================================
   BENEFITS
========================================= */

.trade-benefits-section {
    padding: 75px 0;
    background:
        radial-gradient(circle at top left, rgba(111, 66, 193, 0.08), transparent 34%),
        var(--trade-bg);
}

.trade-section-header {
    max-width: 760px;
    margin: 0 auto 40px;
}

.trade-benefits-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.trade-benefit-card {
    background: #fff;
    border: 1px solid var(--trade-border);
    border-radius: 24px;
    padding: 30px;
    box-shadow: var(--trade-shadow);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.trade-benefit-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 26px 60px rgba(0,0,0,0.12);
}

.trade-benefit-card span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    margin-bottom: 20px;
    background: var(--trade-purple);
    color: #fff;
    border-radius: 50%;
    font-weight: 900;
}

.trade-benefit-card h3 {
    margin: 0 0 12px;
    color: var(--trade-dark);
    font-size: 22px;
    line-height: 1.15;
    font-weight: 900;
    text-transform: uppercase;
}

.trade-benefit-card p {
    margin: 0;
    color: var(--trade-text);
    line-height: 1.7;
    font-weight: 600;
}

/* =========================================
   IMAGE STRIP
========================================= */

.trade-image-strip {
    position: relative;
    min-height: 360px;
    background:
        url('https://images.unsplash.com/photo-1555658636-6e4a36218be7?auto=format&fit=crop&w=1920&q=80')
        center/cover no-repeat;
    display: flex;
    align-items: center;
    color: #fff;
    overflow: hidden;
}

.trade-strip-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(0,0,0,0.78), rgba(0,0,0,0.28)),
        rgba(0,0,0,0.18);
    z-index: 1;
}

.trade-strip-content {
    position: relative;
    z-index: 2;
    max-width: 680px;
}

.trade-strip-content .trade-eyebrow {
    color: var(--trade-yellow);
}

.trade-strip-content h2 {
    margin: 0;
    color: #fff;
    font-size: clamp(34px, 5vw, 68px);
    line-height: 1.2;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -0.5px;
    font-family: var(--beer-font-family, Arial, sans-serif);
}

/* =========================================
   SIGNUP
========================================= */

.trade-signup-section {
    padding: 85px 0 100px;
    background:
        radial-gradient(circle at top right, rgba(224, 89, 42, 0.08), transparent 34%),
        #fff;
}

.trade-signup-grid {
    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
    gap: 46px;
    align-items: center;
}

.trade-signup-info .section-title {
    margin-bottom: 24px;
}

.trade-offer-box {
    margin-top: 28px;
    padding: 22px;
    background: var(--trade-dark);
    color: #fff;
    border-radius: 20px;
    box-shadow: var(--trade-shadow);
}

.trade-offer-box strong {
    display: block;
    margin-bottom: 8px;
    color: var(--trade-yellow);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.trade-offer-box span {
    display: block;
    color: rgba(255,255,255,0.86);
    line-height: 1.65;
    font-weight: 650;
}

.trade-signup-form-wrap {
    min-width: 0;
}

.form-container {
    width: 100%;
    max-width: 560px;
    margin: 0 auto;
    background: #fff;
    border: 1px solid var(--trade-border);
    border-radius: 28px;
    padding: 36px;
    box-shadow: var(--trade-shadow);
}

.trade-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin: 0;
}

.trade-form label {
    color: #222;
    font-weight: 900;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.trade-input {
    width: 100%;
    min-height: 52px;
    padding: 14px 16px;
    border: 1px solid #ddd;
    border-radius: 14px;
    font-size: 15px;
    font-family: inherit;
    outline: none;
    background: #f7f7f4;
    color: #111;
    transition: 0.2s ease;
}

.trade-input:focus {
    border-color: var(--trade-purple);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(111, 66, 193, 0.1);
}

/* =========================================
   OLD CLASS COMPATIBILITY
========================================= */

.section-with-margin {
    padding: 80px 0;
}

.signup-section {
    background-color: #fbfbfb;
    border-top: 1px solid #eee;
}

/* =========================================
   RESPONSIVE
========================================= */

@media (max-width: 950px) {
    .trade-intro-grid,
    .trade-signup-grid {
        grid-template-columns: 1fr;
    }

    .trade-benefits-grid {
        grid-template-columns: 1fr;
    }

    .trade-intro-section,
    .trade-benefits-section,
    .trade-signup-section {
        padding: 60px 0;
    }

    .trade-image-strip {
        min-height: 300px;
    }
}

@media (max-width: 650px) {
    .trade-container,
    .container {
        padding: 0 16px;
    }

    .trade-hero-image {
        min-height: 52vh;
    }

    .secondary-pagers-hero-header {
        font-size: clamp(40px, 15vw, 70px);
        letter-spacing: -0.5px;
    }

    .trade-hero-content p:last-child {
        font-size: 15px;
    }

    .section-title {
        font-size: clamp(30px, 12vw, 44px);
    }

    .trade-paragraph {
        font-size: 15px;
        line-height: 1.7;
    }

    .trade-benefit-card {
        padding: 24px;
        border-radius: 22px;
    }

    .trade-strip-content h2 {
        font-size: clamp(32px, 12vw, 48px);
    }

    .form-container {
        padding: 24px;
        border-radius: 22px;
    }

    .main-red-button {
        width: 100%;
    }
}