*,
*::before,
*::after{
    box-sizing: border-box;
    }

html, body{
    margin: 0;
    padding: 0;
    width: 100%;
    overflow-x: hidden;
    }

html{
    scroll-behavior: smooth;
    }

body{
    background: #f2f2f2;
    font-family: 'Montserrat', sans-serif;
    color: #222;
    user-select: none;
    -webkit-user-select: none; /* Safari */
    }

.calculator-layout{
    width: 100%;
    max-width: 920px;
    margin: 25px auto;
    padding: 0 20px;
    }

.vat-calculator{
    width: 100%;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, .05);
    padding: 5px 20px 30px;
    }

.header-title{
    text-align: center;
    }

.section-title{
    display: flex;
    align-items: center;
    font-weight: 600;
    color: #2c3e50;
    margin: 25px 0 15px;
    }

.section-title::before,
.section-title::after{
    content: "";
    flex: 1;
    border-bottom: 1px solid #ddd;
    }

.section-title::before{ margin-right: 15px; }

.section-title::after{ margin-left: 15px; }

.amount-wrapper{
    display: flex;
    justify-content: center;
    margin-bottom: 25px;
    }

.amount-group{
    display: flex;
    align-items: center;
    gap: 20px;
    border: 1px solid #e6e6e6;
    border-radius: 12px;
    padding: 5px 20px;
    width: 100%;
    max-width: 500px;
    }

.amount-display{
    position: relative;
    flex: 1;
    display: flex;
    justify-content: center;
    }

.amount-display input{
    width: 100%;
    max-width: 160px;
    text-align: center;
    font-size: 28px;
    font-weight: 800;
    border: none;
    background: transparent;
    }

.amount-display input:focus{
    outline: none;
    }

.currency-symbol{
    position: absolute;
    top: 50%;
    transform: translateY(-48%);
    pointer-events: none;
    font-size: 25px;
    font-weight: 800;
    margin-left: 100px;
    }

.input-suffix{
    display: none;
    }

.vat-badge{
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 600;
    margin-left: 15px;
    }

.vat-flag{
    font-size: 26px;
    padding-top: 3px;
    }

.result-block{
    margin-bottom: 25px;
    }

.result-card{
    display: flex;
    justify-content: space-around;
    align-items: flex-end;
    gap: 20px;
    padding: 20px;
    border-radius: 16px;
    background: linear-gradient(90deg, rgba(246, 140, 31, .3), rgba(1, 89, 52, .3));
    }

.result-left,
.result-right{
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 50%;
    }

.result-label{
    font-size: 14px;
    font-weight: 600;
    opacity: .8;
    margin-bottom: 6px;
    color: #000;
    text-align: center;
    }
.result-label div:first-child{
    font-weight:800;
    font-size: 15px;
    padding-bottom: 5px;
    }

.result-amount,
.result-diff-amount{
    font-size: 34px;
    font-weight: 800;
    }

.country-list{
    margin-top: 15px;
    }

.country-row{
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 0;
    border-bottom: 1px solid #e6e6e6;
    width: 100%;
    cursor: pointer;
    }

.country-row:hover{
    background: #f5f5f5;
    }

.country-row--active{
    /*background: #e9f5ec;*/
    background: rgba(1, 89, 52, .15);
    }

.country-row-estonia{
    background: rgba(255, 82, 82, .08);
    pointer-events: none;
    display: none;
    }

.country-left{
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    min-width: 0;
    }

.country-flag{
    font-size: 26px;
    }

.country-name{
    font-size: 16px;
    font-weight: 600;
    }

/* BADGES */

.badge{
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 800;
    white-space: nowrap;
    }

.badge-vat{
    background: rgba(1, 89, 52, .15);
    color: rgb(1, 89, 52);
    width: 75px;
    text-align: center;
    }

.badge-price{
    background: #f7f7f7;
    font-weight: 800;
    width: 80px;
    text-align: center;
    font-size: 20px;
    }

.country-row--active .badge-price{
    background: #214097;
    color: #fff;
    }

.badge-diff{
    margin-left: auto;
    font-size: 13px;
    }

.diff-positive{
    background: rgba(1, 89, 52, .15);
    color: rgb(1, 89, 52);
    font-weight: 600;
    }

.diff-negative{
    background: rgba(239, 65, 54, .15);
    color: #ef4136;
    font-weight: 600;
    }

.vat-high{
    background: rgba(239, 65, 54, .15);
    color: #ef4136;
    }

.subtitle{
    font-size: 12px;
    font-weight: 200;
    margin: 0;
    padding: 0;
    text-align: center;
    } 

@media (max-width: 768px){

    .calculator-layout{
        margin: 20px auto;
        padding: 0 15px;
        }

    .section-title{
        color: #000;
        font-size: 15px;
        }

    /* 🔹 Sticky ülemine osa */
    .amount-wrapper{
        position: sticky;
        top: 0;
        background: #fff;
        z-index: 20;
        padding: 10px 0;
        }

    .result-block{
        position: sticky;
        top: 90px;
        background: #fff;
        z-index: 15;
        padding-bottom: 15px;
        margin-bottom: 0;
        }

    .amount-group{
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        }

    .result-card{
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-end;
        text-align: left;
        gap: 15px;
        }

    .result-left,
    .result-right{
        flex: 1;
        align-items: center;
        text-align: center;
        }

    .result-amount,
    .result-diff-amount{
        font-size: 24px;
        }

    .result-arrow{
        display: none;
        }

    #countryListContainer{
        max-height: 55vh;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        }

    .badge-diff{
        display: none;
        }
    }

.result-card .result-diff-amount.diff-positive,
.result-card .result-diff-amount.diff-negative{
    background: none;
    padding: 0;
    font-weight: 800;
    }

.campaign-hero{
    background: linear-gradient(135deg, #214097, #1565c0);
    color: #fff;
    padding: 25px 20px;
    }

.hero-inner{
    max-width: 920px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    }

.hero-left{
    flex: 1;
    }

.hero-title{
    font-size: 36px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
    }

.hero-highlight{
    color: #f68c1f;
    }

.hero-subtitle{
    font-size: 16px;
    opacity: .9;
    margin-bottom: 30px;
    }

.hero-button{
    display: inline-block;
    background: #f68c1f;
    color: #214097;
    font-weight: 800;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    transition: .2s ease;
    }

.hero-button:hover{
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, .25);
    }

.hero-button-wrapper{
    /*text-align: center;*/
    }

.hero-right{
    flex: 1;
    text-align: right;
    max-width: 250px;
    }

.hero-right img{
    /*max-width: 400px;*/
    width: 100%;
    height: auto;
    }

@media (max-width: 768px){
    .campaign-hero{
        background: linear-gradient(135deg, #214097, #1565c0);
        color: #fff;
        padding: 15px 20px;
        }

    .hero-inner{
        flex-direction: column;
        text-align: center;
        gap: 15px;
        }

    .hero-title{
        font-size: 24px;
        }

    .hero-subtitle {
        font-size: 14px;
        margin-bottom: 25px;
        }

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

    .hero-button {
        padding: 10px 16px;
        font-size: 14px;
        }

    .hero-right img{
        max-width: 135px;
        }
    }

.vat-info-block{
    margin: 20px 0;
    padding: 40px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, .05);
    line-height: 1.65;
    }

.info-title{
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 25px;
    color: #1a1a1a;
    }

.info-subtitle{
    margin-top: 35px;
    margin-bottom: 15px;
    font-size: 20px;
    font-weight: 700;
    }

.vat-info-block p{
    margin-bottom: 18px;
    font-size: 16px;
    color: #333;
    }

.info-list{
    padding-left: 20px;
    margin-bottom: 25px;
    }

.info-list li{
    margin-bottom: 5px;
    font-size: 16px;
    }

.info-note{
    margin-top: 25px;
    padding-top: 15px;
    border-top: 1px solid #eee;
    font-size: 14px;
    color: #666;
    }

@media (max-width: 768px){

    .vat-info-block{
        padding: 25px;
        }

    .vat-info-block p {
        font-size: 14px;
        }

    .info-title{
        font-size: 22px;
        }

    .info-subtitle{
        font-size: 18px;
        }
    }
