:root {
    /* Colors - SóBandeiras Brand Palette */
    --primary: #003366;
    /* Navy blue - professional and trustworthy */
    --accent: #ff8c00;
    /* Warm orange - energetic and welcoming */
    --accent-hover: #e67e00;
    --text-main: #2c3e50;
    --text-muted: #7f8c8d;
    --bg-main: #f5f7fa;
    --bg-card: #ffffff;
    --bg-secondary: #ecf0f1;
    --border: #dfe6e9;
    --input-bg: #fff;
    --success: #27ae60;
    --error: #e74c3c;

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;

    /* Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 32px;

    /* Shadows */
    --shadow-soft: 0 4px 24px rgba(0, 0, 0, 0.04);
    --shadow-hover: 0 8px 32px rgba(67, 97, 238, 0.12);
}

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

body {
    font-family: 'Roboto', 'Segoe UI', 'Arial', sans-serif;
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: var(--spacing-lg) var(--spacing-sm);
}

/* Header */
.header {
    text-align: center;
    margin-bottom: var(--spacing-xl);
}

.brand {
    margin-bottom: var(--spacing-sm);
    display: flex;
    justify-content: center;
}

.logo {
    max-height: 80px;
    width: auto;
    display: block;
}

.header h1 {
    font-family: 'PT Sans', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    font-style: italic;
    line-height: 1.1;
    color: var(--primary);
    margin-bottom: var(--spacing-sm);
    letter-spacing: -0.02em;
}

.subtitle {
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* Form Sections */
.section {
    background: var(--bg-card);
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    margin-bottom: var(--spacing-lg);
    border: 1px solid rgba(255, 255, 255, 0.5);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.section:hover {
    box-shadow: var(--shadow-hover);
}

.section h2 {
    font-family: 'PT Sans', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    font-style: italic;
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-md);
    color: var(--primary);
    border-bottom: 2px solid var(--bg-secondary);
    padding-bottom: var(--spacing-sm);
}

.step-number {
    background: var(--bg-secondary);
    color: var(--accent);
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 0.875rem;
    font-weight: 700;
}

/* Grids & Layout */
.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-md);
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-md);
}

.span-2 {
    grid-column: span 2;
}

@media (max-width: 600px) {

    .grid-2,
    .grid-3 {
        grid-template-columns: 1fr;
    }

    .span-2 {
        grid-column: auto;
    }

    .header h1 {
        font-size: 2rem;
    }
}

/* Inputs */
.input-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: var(--spacing-sm);
}

.mt-4 {
    margin-top: 1rem;
}

label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-main);
}

input[type="text"],
input[type="email"],
input[type="tel"],
textarea,
select {
    padding: 14px 16px;
    border-radius: var(--radius-md);
    border: 2px solid var(--bg-secondary);
    background: var(--input-bg);
    font-family: inherit;
    font-size: 1rem;
    color: var(--primary);
    transition: all 0.2s;
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(67, 97, 238, 0.1);
}

textarea {
    resize: vertical;
}

.link-small {
    font-size: 0.85rem;
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
}

/* Custom Radios - Quantity */
.quantity-selector {
    display: flex;
    gap: var(--spacing-sm);
    flex-wrap: wrap;
}

.radio-card {
    flex: 1;
    min-width: 80px;
    cursor: pointer;
}

.radio-card input {
    display: none;
}

.card-content {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 16px;
    background: var(--bg-secondary);
    border: 2px solid transparent;
    border-radius: var(--radius-md);
    font-weight: 600;
    transition: all 0.2s;
    color: var(--text-muted);
}

.radio-card input:checked+.card-content {
    background: #fff;
    border-color: var(--accent);
    color: var(--accent);
    box-shadow: 0 4px 12px rgba(67, 97, 238, 0.15);
    transform: translateY(-2px);
}

/* Kit Selection */
.kit-selection {
    background: var(--bg-secondary);
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
    margin-bottom: var(--spacing-md);
}

.hidden {
    display: none;
}

.kit-selection h3 {
    font-family: 'PT Sans', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    font-style: italic;
    margin-bottom: 0.5rem;
}

.helper-text {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: var(--spacing-md);
}

.size-group {
    margin-bottom: var(--spacing-md);
}

.size-label {
    display: block;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 700;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.size-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.size-pill {
    cursor: pointer;
}

.size-pill input {
    display: none;
}

.size-pill span {
    display: flex;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #fff;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-main);
    border: 1px solid var(--border);
    transition: all 0.2s;
}

.size-pill input:checked+span {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
    font-weight: 700;
}

/* Address Type Details */
.address-type {
    display: flex;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-md);
}

.radio-pill {
    cursor: pointer;
}

.radio-pill input {
    display: none;
}

.radio-pill span {
    padding: 10px 24px;
    border-radius: 100px;
    background: var(--bg-secondary);
    color: var(--text-muted);
    font-weight: 600;
    transition: 0.2s;
    display: inline-block;
}

.radio-pill input:checked+span {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Chips for time */
.chips-group {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.chip {
    cursor: pointer;
    flex: 1;
}

.chip input {
    display: none;
}

.chip span {
    padding: 8px 16px;
    border: 2px solid var(--bg-secondary);
    border-radius: var(--radius-sm);
    font-weight: 500;
    transition: 0.2s;
    background: #fff;
    display: block;
    text-align: center;
    width: 100%;
}

.chip input:checked+span {
    border-color: var(--accent);
    color: var(--accent);
    background: rgba(67, 97, 238, 0.05);
}

/* Switch */
.switch-group {
    display: flex;
    background: var(--bg-secondary);
    padding: 4px;
    border-radius: 100px;
    width: max-content;
}

.switch-option {
    cursor: pointer;
}

.switch-option input {
    display: none;
}

.switch-option span {
    padding: 8px 24px;
    border-radius: 100px;
    display: block;
    font-weight: 600;
    color: var(--text-muted);
    transition: 0.2s;
}

.switch-option input:checked+span {
    background: #fff;
    color: var(--primary);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* Checkbox specific */
.checkbox-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.checkbox-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    font-size: 0.95rem;
}

.checkbox-item input {
    display: none;
}

.checkmark {
    min-width: 24px;
    height: 24px;
    border-radius: 6px;
    border: 2px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.2s;
    background: #fff;
    position: relative;
    top: 2px;
}

.checkbox-item input:checked+.checkmark {
    background: var(--success);
    border-color: var(--success);
}

.checkbox-item input:checked+.checkmark::after {
    content: '✔';
    color: white;
    font-size: 14px;
}

/* Footer */
.form-footer {
    text-align: center;
    margin-top: var(--spacing-xl);
    padding-bottom: var(--spacing-xl);
}

.legal-text {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: var(--spacing-md);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.btn-submit {
    background: var(--accent);
    color: white;
    border: none;
    padding: 18px 48px;
    border-radius: 100px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 8px 24px rgba(67, 97, 238, 0.4);
}

.btn-submit:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(67, 97, 238, 0.5);
}

.alert-info {
    padding: var(--spacing-sm);
    background: rgba(67, 97, 238, 0.1);
    color: var(--accent);
    border-radius: var(--radius-sm);
    margin-top: var(--spacing-sm);
    font-weight: 500;
}