/* 기업해외출장보험 - 상품 소개 페이지 */
:root {
    --color-primary: #0d47a1;
    --color-primary-light: #1565c0;
    --color-primary-dark: #0a3d7a;
    --color-accent: #0277bd;
    --color-bg: #f5f7fa;
    --color-surface: #ffffff;
    --color-text: #1a1a2e;
    --color-text-muted: #5c5c6e;
    --color-border: #e0e4e8;
    --color-success: #2e7d32;
    --color-error: #c62828;
    --font-sans: 'Noto Sans KR', -apple-system, BlinkMacSystemFont, sans-serif;
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
    --radius: 8px;
    --radius-lg: 12px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    font-family: var(--font-sans);
    font-weight: 400;
    line-height: 1.6;
    color: var(--color-text);
    background: var(--color-bg);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

/* Header */
.header {
    background: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-primary) 100%);
    color: #fff;
    padding: 1.5rem 1rem;
    box-shadow: var(--shadow);
}

.header-inner {
    max-width: 960px;
    margin: 0 auto;
}

.logo {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.tagline {
    margin: 0.25rem 0 0;
    font-size: 0.9rem;
    opacity: 0.95;
}

/* Main */
main {
    flex: 1;
    padding: 2rem 1rem 3rem;
}

.container {
    max-width: 720px;
    margin: 0 auto;
}

/* Hero */
.hero {
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    padding: 2rem 1.5rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow);
}

.hero-title {
    margin: 0 0 0.75rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-primary);
}

.hero-desc {
    margin: 0;
    color: var(--color-text-muted);
    font-size: 0.95rem;
}

/* Section */
.section {
    margin-bottom: 2.5rem;
}

.section-title {
    margin: 0 0 1.25rem;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-text);
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--color-primary);
}

/* Benefits */
.benefits {
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow);
}

.benefit-list {
    margin: 0 0 1rem;
    padding-left: 1.25rem;
    list-style: none;
}

.benefit-list li {
    position: relative;
    padding-left: 0.5rem;
    margin-bottom: 0.5rem;
}

.benefit-list li::before {
    content: '';
    position: absolute;
    left: -1rem;
    top: 0.6em;
    width: 6px;
    height: 6px;
    background: var(--color-accent);
    border-radius: 50%;
}

.benefit-list strong {
    color: var(--color-primary);
}

.note {
    margin: 0;
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

/* Comparison */
.comparison {
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow);
}

.comparison-grid {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 1rem;
    align-items: center;
}

.comparison-card {
    padding: 1.25rem;
    border-radius: var(--radius);
    text-align: center;
}

.comparison-card.as-is {
    background: #fff3e0;
    border: 1px solid #ffcc80;
}

.comparison-card.as-is h3 {
    color: #e65100;
}

.comparison-card.to-be {
    background: #e8f5e9;
    border: 1px solid #81c784;
}

.comparison-card.to-be h3 {
    color: #2e7d32;
}

.comparison-card h3 {
    margin: 0 0 0.5rem;
    font-size: 1.1rem;
    font-weight: 600;
}

.comparison-card p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

.comparison-arrow {
    font-size: 1.5rem;
    color: var(--color-primary);
    font-weight: 700;
    text-align: center;
}

.comparison-arrow .arrow-v {
    display: none;
}

/* Form section */
.form-section {
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow);
}

.form-intro {
    margin: 0 0 1.5rem;
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

.quote-form {
    margin: 0;
}

.quote-form fieldset {
    margin: 0 0 1.5rem;
    padding: 0;
    border: none;
}

.quote-form legend {
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 0.75rem;
    color: var(--color-text);
}

.form-group .row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.form-group .row:last-of-type {
    margin-bottom: 0;
}

.form-group .row.two-cols {
    grid-template-columns: 1fr 1fr;
}

.field {
    display: block;
}

.field .label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 0.35rem;
    color: var(--color-text);
}

.field .label em {
    color: var(--color-error);
    font-style: normal;
}

.field input,
.field textarea {
    width: 100%;
    padding: 0.6rem 0.75rem;
    font-family: var(--font-sans);
    font-size: 1rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    background: var(--color-surface);
    color: var(--color-text);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.field input:focus,
.field textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(13, 71, 161, 0.15);
}

.field input::placeholder,
.field textarea::placeholder {
    color: #9e9e9e;
}

.field input[type="number"] {
    min-width: 0;
}

.sub-group {
    padding: 1rem;
    background: var(--color-bg);
    border-radius: var(--radius);
}

.sub-group h4 {
    margin: 0 0 0.75rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-primary);
}

.sub-group .field {
    margin-bottom: 0.75rem;
}

.sub-group .field:last-child {
    margin-bottom: 0;
}

.form-note {
    margin: 0.75rem 0 0;
    font-size: 0.8rem;
    color: var(--color-text-muted);
}

.form-actions {
    margin-top: 1.5rem;
}

.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    font-family: var(--font-sans);
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
}

.btn:active {
    transform: scale(0.98);
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
    color: #fff;
    width: 100%;
    max-width: 280px;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-primary) 100%);
}

.btn-primary:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.form-message {
    margin-top: 1rem;
    padding: 1rem 1.25rem;
    border-radius: var(--radius);
    font-size: 0.9rem;
    white-space: pre-line;
}

.form-message.success {
    background: #e8f5e9;
    color: var(--color-success);
    border: 1px solid #a5d6a7;
}

.form-message.error {
    background: #fff8f8;
    color: #b71c1c;
    border: 1px solid #ef9a9a;
}

.form-message.error::before {
    content: '⚠';
    display: block;
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.field.field-error input,
.field.field-error textarea {
    border-color: var(--color-error);
    background: #fffafa;
    box-shadow: 0 0 0 2px rgba(198, 40, 40, 0.12);
}

.field.field-error .label {
    color: var(--color-error);
    font-weight: 600;
}

.field.field-error .label::after {
    content: ' (입력 필요)';
    font-weight: 500;
    font-size: 0.8em;
    opacity: 0.9;
}

.form-message[hidden] {
    display: none !important;
}

/* Footer */
.footer {
    background: var(--color-surface);
    padding: 1rem;
    text-align: center;
    font-size: 0.85rem;
    color: var(--color-text-muted);
    border-top: 1px solid var(--color-border);
}

.footer p {
    margin: 0;
}

/* Responsive */
@media (max-width: 768px) {
    main {
        padding: 1.5rem 1rem 2rem;
    }

    .hero {
        padding: 1.5rem 1rem;
    }

    .hero-title {
        font-size: 1.35rem;
    }

    .section-title {
        font-size: 1.15rem;
    }

    .benefits,
    .comparison,
    .form-section {
        padding: 1.25rem 1rem;
    }
}

@media (max-width: 640px) {
    .header {
        padding: 1rem;
    }

    .logo {
        font-size: 1.25rem;
    }

    .tagline {
        font-size: 0.85rem;
    }

    main {
        padding: 1.25rem 0.75rem 1.5rem;
    }

    .hero {
        padding: 1.25rem 0.75rem;
    }

    .hero-title {
        font-size: 1.2rem;
    }

    .hero-desc {
        font-size: 0.9rem;
    }

    .section-title {
        font-size: 1.1rem;
    }

    .comparison-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .comparison-arrow {
        margin: 1rem 0;
        transform: none;
    }

    .comparison-arrow .arrow-h {
        display: none;
    }

    .comparison-arrow .arrow-v {
        display: inline;
    }

    .comparison-card {
        padding: 1rem;
    }

    .comparison-card p {
        font-size: 0.85rem;
    }

    .form-group .row,
    .form-group .row.two-cols {
        grid-template-columns: 1fr;
    }

    .sub-group {
        padding: 0.75rem;
    }

    .btn-primary {
        max-width: none;
        padding: 0.85rem 1.25rem;
    }

    .form-message {
        padding: 0.85rem 1rem;
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .header-inner {
        padding: 0 0.25rem;
    }

    .logo {
        font-size: 1.1rem;
    }

    .field input,
    .field textarea {
        padding: 0.55rem 0.65rem;
        font-size: 16px; /* iOS zoom 방지 */
    }
}

/* Validation */
.field input:invalid:not(:placeholder-shown).touched,
.field textarea:invalid:not(:placeholder-shown).touched {
    border-color: var(--color-error);
}

.field input.valid:not(:placeholder-shown),
.field textarea.valid:not(:placeholder-shown) {
    border-color: var(--color-success);
}

.field input.invalid.touched,
.field textarea.invalid.touched {
    border-color: var(--color-error);
}
