@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    --primary: #0058a3; /* Default IKEA blue */
    --secondary: #ffd100; /* Default IKEA yellow */
    --background: #f4f5f7;
    --surface: #ffffff;
    --text-main: #111111;
    --text-muted: #484848;
    --border: #dfdfdf;
    --radius: 8px;
    --shadow: 0 4px 20px rgba(0,0,0,0.08);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    background-color: var(--background);
    color: var(--text-main);
    line-height: 1.5;
}

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

/* Header */
.header {
    background: #fff;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border);
}

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

.header-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

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

.header-text {
    font-weight: 500;
    font-size: 1.1rem;
    display: none;
}

@media (min-width: 768px) {
    .header-text { display: block; }
}

.header-icons {
    display: flex;
    gap: 1rem;
    font-size: 1.2rem;
}

.header-icons svg {
    width: 24px;
    height: 24px;
}

/* Hero Section */
.hero {
    position: relative;
    background-color: #e5e5e5;
    background-image: url('https://images.unsplash.com/photo-1556228453-efd6c1ff04f6?ixlib=rb-4.0.3&auto=format&fit=crop&w=2000&q=80'); /* Placeholder bg */
    background-size: cover;
    background-position: center;
    padding: 3rem 0 10rem 0;
    min-height: 500px;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(90deg, rgba(255,255,255,0.9) 0%, rgba(255,255,255,0.6) 50%, rgba(255,255,255,0) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 500px;
}

.hero h1 {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

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

.hero p.subtitle {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    font-weight: 500;
}

.hero-features {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
}

.hero-feature {
    text-align: center;
}

.hero-feature-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.5rem;
    font-size: 1.5rem;
    color: var(--primary);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.hero-feature-text {
    font-size: 0.85rem;
    font-weight: 500;
    line-height: 1.2;
}

.reward-badge {
    position: absolute;
    top: 3rem;
    right: 1rem;
    width: 180px;
    height: 180px;
    background-color: var(--primary);
    color: #fff;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    z-index: 3;
    box-shadow: var(--shadow);
    transform: rotate(10deg);
}

.reward-badge span:first-child {
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
}

.reward-badge span:nth-child(2) {
    font-size: 1rem;
    font-weight: 700;
}

.reward-badge .amount {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1;
}

/* Main Form Card */
.form-card {
    background: var(--surface);
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: var(--shadow);
    position: relative;
    z-index: 10;
    margin-top: -6rem;
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    border: 1px solid var(--border);
}

@media (min-width: 992px) {
    .form-card {
        grid-template-columns: 1fr 1.5fr 1.5fr;
        padding: 3rem;
        gap: 3rem;
    }
}

.form-col {
    display: flex;
    flex-direction: column;
}

.form-col h2 {
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    letter-spacing: 0.5px;
}

.col-left p {
    font-size: 1rem;
    color: var(--text-muted);
}

.card-img-placeholder {
    width: 100%;
    max-width: 250px;
    height: 150px;
    background: var(--primary);
    border-radius: var(--radius);
    margin-top: 1.5rem;
    position: relative;
    overflow: hidden;
}

/* Form Elements */
.input-group {
    margin-bottom: 1rem;
    position: relative;
}

.input-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #888;
}

.form-control {
    width: 100%;
    padding: 0.875rem 1rem 0.875rem 2.5rem;
    border: 1px solid var(--border);
    border-radius: 4px;
    font-size: 1rem;
    color: var(--text-main);
    background: #fff;
    transition: all 0.2s;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(0, 88, 163, 0.1);
}

select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1em;
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.checkbox-group input[type="checkbox"] {
    margin-top: 0.25rem;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.checkbox-group label {
    font-size: 0.875rem;
    color: var(--text-muted);
    cursor: pointer;
}

.checkbox-group a {
    color: var(--primary);
    text-decoration: none;
}

.btn-submit {
    background: var(--secondary);
    color: var(--text-main);
    font-weight: 700;
    font-size: 1.1rem;
    padding: 1.25rem;
    border: none;
    border-radius: 4px;
    width: 100%;
    cursor: pointer;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: opacity 0.2s;
    margin-top: 1rem;
}

.btn-submit:hover {
    opacity: 0.9;
}

.secure-text {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 1rem;
}

/* Radio List */
.radio-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.radio-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    cursor: pointer;
}

.radio-item input[type="radio"] {
    width: 20px;
    height: 20px;
    accent-color: var(--primary);
}

.radio-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.radio-label {
    font-size: 1rem;
}

/* Features List */
.features-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    padding: 4rem 0;
    text-align: center;
}

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

.feature-box img {
    width: 48px;
    height: 48px;
    margin-bottom: 1rem;
}

.feature-box h4 {
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.feature-box p {
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* Terms */
.terms-section {
    padding: 2rem 0 4rem;
    border-top: 1px solid var(--border);
}

.terms-section h3 {
    font-weight: 700;
    text-transform: uppercase;
    font-size: 1rem;
    margin-bottom: 1rem;
}

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

@media (min-width: 768px) {
    .terms-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
}

.terms-grid ul {
    list-style: none;
}

.terms-grid ul li {
    position: relative;
    padding-left: 1rem;
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.terms-grid ul li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--text-muted);
}

/* Footer */
.footer {
    text-align: center;
    padding: 2rem;
    font-weight: 600;
    background: #fff;
    border-top: 1px solid var(--border);
}

/* Overrides for COOP Theme */
.theme-coop .hero h1 span { color: var(--text-main); }
.theme-coop .reward-badge { border-radius: 50%; background: #61b136; transform: none; right: 5%; top: 50%; }
.theme-coop .btn-submit { color: #fff; border-radius: 2rem; }
.theme-coop .card-img-placeholder { background: var(--primary); border-radius: 8px; }
.theme-coop .footer { background: var(--primary); color: #fff; display: flex; justify-content: space-around; flex-wrap: wrap; text-align: left;}

/* Success / Loader */
.loader { display: none; width: 20px; height: 20px; border: 2px solid rgba(0,0,0,0.2); border-top-color: currentColor; border-radius: 50%; animation: spin 1s linear infinite; }
@keyframes spin { 100% { transform: rotate(360deg); } }

.success-screen { display: none; text-align: center; padding: 4rem 2rem; background: var(--surface); border-radius: var(--radius); border: 1px solid var(--border); margin-top: -6rem; position: relative; z-index: 10;}
.success-screen h2 { color: var(--primary); margin-bottom: 1rem; font-size: 2rem; }
.coupon-box { font-size: 2rem; font-family: monospace; font-weight: 700; background: #f0f0f0; padding: 1rem; margin: 2rem auto; max-width: 300px; letter-spacing: 2px; }

/* FontAwesome is required for icons in html */
