:root {
    --bg-main: radial-gradient(circle at top left, rgba(244, 67, 54, 0.28), transparent 40%),
                radial-gradient(circle at 20% 80%, rgba(255, 193, 7, 0.2), transparent 50%),
                linear-gradient(135deg, #0b0f1a 0%, #121825 60%, #050a15 100%);
    --glass-bg: rgba(12, 18, 32, 0.7);
    --glass-border: rgba(255, 255, 255, 0.12);
    --accent-red: #ff4d4f;
    --accent-amber: #ffc107;
    --accent-blue: #3aa6ff;
    --text-primary: #f1f5f9;
    --text-secondary: rgba(241, 245, 249, 0.75);
    --text-muted: rgba(241, 245, 249, 0.55);
    --shadow-xl: 0 25px 70px rgba(0, 0, 0, 0.35);
    --blur-size: 22px;
    --radius-lg: 28px;
    --radius-md: 18px;
    --radius-sm: 12px;
    --transition: all 0.3s ease;
    --font-family: 'Poppins', 'Segoe UI', sans-serif;
}
 
* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    font-family: var(--font-family);
    color: var(--text-primary);
    background: #050a15;
    min-height: 100vh;
}

body {
    background-image: var(--bg-main);
    background-size: cover;
    background-attachment: fixed;
}

h1, h2, h3, h4, h5 {
    margin: 0;
    font-weight: 600;
}

p {
    margin: 0;
    color: var(--text-secondary);
}

label {
    display: block;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-secondary);
}

input,
select,
button {
    font-family: inherit;
}

.hero {
    position: relative;
    padding: 120px 5vw 90px;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('https://images.unsplash.com/photo-1519641471654-76ce0107ad1b?auto=format&fit=crop&w=1600&q=80') center/cover no-repeat;
    opacity: 0.35;
    filter: grayscale(0.2);
}

.hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(5, 10, 21, 0.8), rgba(5, 10, 21, 0.55));
}

.hero__content {
    position: relative;
    max-width: 620px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    z-index: 1;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 77, 79, 0.15);
    border: 1px solid rgba(255, 77, 79, 0.45);
    color: #ff9a9c;
    font-size: 0.8rem;
    padding: 8px 16px;
    border-radius: 999px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    line-height: 1.1;
    text-shadow: 0 15px 30px rgba(0, 0, 0, 0.35);
}

.hero p {
    font-size: 1rem;
    color: var(--text-muted);
    max-width: 520px;
}

.calculator-app {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr);
    gap: 36px;
    padding: 0 5vw 60px;
    margin-top: -80px;
}

.glass-card {
    position: relative;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    backdrop-filter: blur(var(--blur-size));
    -webkit-backdrop-filter: blur(var(--blur-size));
    padding: 34px;
}

.form-card h2,
.highlight-card h2 {
    margin-bottom: 26px;
    font-size: 1.45rem;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px 28px;
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.form-field.full {
    grid-column: 1 / -1;
}

.form-field input,
.form-field select {
    width: 100%;
    padding: 14px 16px;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(241, 245, 249, 0.08);
    background: rgba(9, 14, 25, 0.6);
    color: var(--text-primary);
    transition: var(--transition);
}

.form-field input:focus,
.form-field select:focus {
    outline: none;
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 3px rgba(58, 166, 255, 0.15);
}

.form-field select {
    appearance: none;
    -webkit-appearance: none;
    background-image: linear-gradient(45deg, transparent 50%, rgba(241, 245, 249, 0.7) 50%),
                      linear-gradient(135deg, rgba(241, 245, 249, 0.7) 50%, transparent 50%);
    background-position: calc(100% - 20px) calc(1rem + 2px), calc(100% - 15px) calc(1rem + 2px);
    background-size: 6px 6px, 6px 6px;
    background-repeat: no-repeat;
}

.field-label {
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--accent-amber);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.radio-group {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.radio-pill {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 6px;
    background: rgba(15, 22, 36, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.12);
    cursor: pointer;
    transition: var(--transition);
}

.radio-pill input {
    display: none;
}

.radio-pill span {
    padding: 8px 18px;
    border-radius: 999px;
    color: var(--text-secondary);
    font-weight: 500;
}

.radio-pill input:checked + span {
    background: linear-gradient(135deg, rgba(255, 77, 79, 0.9), rgba(255, 152, 0, 0.8));
    color: #fff;
    box-shadow: 0 12px 30px rgba(255, 77, 79, 0.3);
}

.radio-pill:hover {
    border-color: rgba(255, 77, 79, 0.45);
}

.radio-stack {
    display: grid;
    gap: 10px;
}

.radio-stack label {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-radius: var(--radius-sm);
    background: rgba(12, 18, 32, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.08);
    cursor: pointer;
    transition: var(--transition);
}

.radio-stack input {
    width: 18px;
    height: 18px;
}

.radio-stack span {
    color: var(--text-secondary);
}

.radio-stack input:checked + span {
    color: var(--text-primary);
    font-weight: 600;
}

.radio-stack label:hover {
    border-color: rgba(58, 166, 255, 0.4);
}

.cta-button {
    margin-top: 28px;
    display: inline-flex;
    align-items: center;
    gap: 14px;
    padding: 16px 26px;
    border-radius: 999px;
    border: none;
    background: linear-gradient(135deg, #ff4d4f, #ff7a18);
    color: #fff;
    font-weight: 600;
    letter-spacing: 0.04em;
    cursor: pointer;
    box-shadow: 0 18px 32px rgba(255, 77, 79, 0.35);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.cta-button svg {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.6px;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 22px 40px rgba(255, 118, 68, 0.35);
}

.form-note {
    margin-top: 16px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.highlight-card {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.highlight {
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-md);
    padding: 28px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    flex-direction: column;
    gap: 18px;
    position: relative;
    overflow: hidden;
}

.highlight::after {
    content: '';
    position: absolute;
    top: -40%;
    right: -20%;
    width: 280px;
    height: 280px;
    background: radial-gradient(circle, rgba(255, 77, 79, 0.35), transparent 60%);
    transform: rotate(25deg);
}

.highlight__value {
    display: flex;
    align-items: baseline;
    gap: 8px;
    font-size: clamp(2.5rem, 5vw, 3.6rem);
    font-weight: 700;
    color: #fff;
    white-space: nowrap;
}

.highlight__value .currency {
    font-size: 1.4rem;
    color: rgba(255, 255, 255, 0.75);
}

.quick-stats {
    display: grid;
    gap: 16px;
}

.quick-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 18px;
    border-radius: var(--radius-sm);
    background: rgba(11, 17, 29, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.quick-label {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.quick-value {
    font-size: 1.05rem;
    font-weight: 600;
    color: #fff;
}

.results-wrapper {
    padding: 40px 5vw 80px;
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 28px;
}

.result-card h3 {
    margin-bottom: 22px;
    font-size: 1.2rem;
}

.result-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 14px;
}

.result-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    font-size: 0.95rem;
    color: var(--text-muted);
}

.price-tag {
    display: inline-flex;
    align-items: baseline;
    gap: 4px;
    color: var(--text-primary);
    font-weight: 600;
}

.price-tag--xl {
    gap: 10px;
    font-size: clamp(2.3rem, 5vw, 3.8rem);
}

.result-list li.total {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.result-card--wide {
    grid-column: span 2;
}

.result-two-column {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.hidden-value {
    display: none;
}

.footer {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(5, 10, 21, 0.85);
    padding: 36px 5vw 44px;
}

.footer__content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 32px;
    flex-wrap: wrap;
}

.footer__brand {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer__brand img {
    max-width: 210px;
}

.footer__info {
    display: flex;
    gap: 32px;
    align-items: flex-start;
    flex-wrap: wrap;
}

.footer__info h4 {
    font-size: 0.95rem;
    color: var(--accent-amber);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 8px;
}

.footer__info a {
    color: #fff;
    text-decoration: none;
}

.footer__socials {
    display: flex;
    gap: 12px;
}

.footer__socials a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    transition: var(--transition);
}

.footer__socials a:hover {
    background: var(--accent-red);
}

.footer__socials i {
    font-size: 16px;
}

@media (max-width: 1100px) {
    .calculator-app {
        grid-template-columns: 1fr;
    }

    .highlight-card {
        order: -1;
    }
}

@media (max-width: 820px) {
    .hero {
        padding: 100px 24px 80px;
    }

    .calculator-app,
    .results-wrapper,
    .footer {
        padding-left: 24px;
        padding-right: 24px;
    }

    .glass-card {
        padding: 26px;
    }
}

@media (max-width: 680px) {
    .form-grid {
        grid-template-columns: 1fr;
    }

    .radio-group {
        flex-direction: column;
    }

    .calculator-app {
        margin-top: -40px;
    }

    .footer__content {
        flex-direction: column;
        align-items: flex-start;
    }

    .calculator-app {
        gap: 0;
    }

    .form-card {
        margin-bottom: 0;
        border-bottom-left-radius: 0;
        border-bottom-right-radius: 0;
        padding-bottom: 20px;
    }

    .highlight-card {
        order: 2;
        gap: 22px;
        margin-top: 0;
        border-radius: 0 0 var(--radius-lg) var(--radius-lg);
        border-top: 1px solid rgba(255, 255, 255, 0.08);
        box-shadow: var(--shadow-xl);
        background: var(--glass-bg);
        padding: 24px;
    }

    .highlight {
        padding: 20px 0 0;
        text-align: left;
        align-items: flex-start;
        background: transparent;
        border: none;
    }

    .highlight::after {
        display: none;
    }

    .highlight__value {
        font-size: 2.6rem;
        line-height: 1;
    }

    .highlight p {
        font-size: 0.95rem;
    }

    .quick-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
        width: 100%;
    }

    .quick-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
        width: 100%;
        padding: 14px 16px;
        background: rgba(11, 17, 29, 0.7);
    }

    .quick-value {
        font-size: 1.05rem;
    }

    .result-card--wide {
        grid-column: span 1;
    }

    .result-two-column {
        grid-template-columns: 1fr;
        gap: 18px;
    }
}

@media (max-width: 520px) {
    .hero {
        padding-top: 80px;
    }

    .hero h1 {
        font-size: 1.9rem;
    }

    .hero p {
        font-size: 0.95rem;
    }

    .cta-button {
        width: 100%;
        justify-content: center;
    }

    .highlight__value {
        font-size: 2.2rem;
    }

    .quick-stats {
        grid-template-columns: 1fr;
    }

    .price-tag {
        gap: 3px;
    }
}

