* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #f2f6fb, #ffffff);
    color: #0a2540;
}

.hp-field {
    display: none;
}

.wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column; /* 🔴 TÄMÄ RATKAISEE */
    align-items: center;
    padding: 40px 20px;
}

.card {
    max-width: 1100px;
    width: 100%;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 30px 70px rgba(10, 37, 64, 0.15);
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    overflow: hidden;
    border-top-right-radius: 5em;
}

.form {
    animation: formBreath 6s ease-in-out infinite;
}

@keyframes formBreath {
    0%   { transform: translateY(0); }
    50%  { transform: translateY(-20px); }
    100% { transform: translateY(0); }
}

/* FORM IDLE ANIMAATIO */

@keyframes formFloat {
    0%   { transform: translateY(0); }
    50%  { transform: translateY(-6px); }
    100% { transform: translateY(0); }
}

.input-wrapper input,
.input-wrapper textarea {
    transition: 
        border-color 0.25s ease,
        box-shadow 0.25s ease,
        transform 0.25s ease;
}

.input-wrapper input:focus,
.input-wrapper textarea:focus {
    transform: translateY(-1px);
}

button[type="submit"]:active {
    transform: scale(0.97);
}

.form {
    padding: 50px;
}

.form h1 {
    margin-bottom: 10px;
    background: -webkit-linear-gradient(#FF72C0, #052352);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
}

.form p {
    color: #5c6b80;
    margin-bottom: 30px;
}

.field {
    margin-bottom: 22px;
}

label {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 6px;
    display: block;
    background: -webkit-linear-gradient(#FF72C0, #052352);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
}

.input-wrapper {
    position: relative;
}

.input-wrapper input,
.input-wrapper textarea {
    width: 100%;
    padding: 14px 16px 14px 44px;
    border-radius: 12px;
    border: 1px solid #dce3ec;
    font-size: 15px;
    transition: 0.25s ease;
    font-family: inherit;
}

.input-wrapper textarea {
    min-height: 140px;
    resize: vertical;
}

.input-wrapper input:focus,
.input-wrapper textarea:focus {
    outline: none;
    border-color: #0a2540;
}

.input-wrapper input.valid,
.input-wrapper textarea.valid {
    border-color: #1a7f37;
    box-shadow: 0 0 0 3px rgba(26, 127, 55, 0.15);
}

.icon {
    position: absolute;
    left: 14px;
    top: 0;
    bottom: 0;
    margin: auto;
    width: 18px;
    height: 18px;
    fill: #8aa0b6;
    pointer-events: none;
}

.input-wrapper input.valid+.icon,
.input-wrapper textarea.valid+.icon {
    fill: #1a7f37;
}

/* ERRORS */
.error {
    display: none;
    font-size: 13px;
    color: #d93025;
    margin-top: 6px;
}

button {
    margin-top: 10px;
    background: linear-gradient(135deg, #FF72C0, #052352);
    color: #fff;
    border: none;
    padding: 15px 36px;
    font-size: 16px;
    border-radius: 999px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    transition: opacity 0.4s ease;
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(255, 79, 163, 0.4);
}

button i {
    font-size: 12px;
}

button.loading {
    pointer-events: none;
    opacity: 0.85;
}

.spinner {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.25);
    border-top-color: #fff;
    animation: spin 0.8s linear infinite;
    display: none;
}

button.loading .spinner {
    display: inline-block;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.success {
    display: none;
    margin-top: 30px;
    text-align: center;
    animation: fadeIn 0.6s ease forwards;
}

.checkmark {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #1a7f37;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
    animation: pop 0.5s ease forwards;
}

.checkmark svg {
    width: 32px;
    height: 32px;
    fill: #fff;
}

@keyframes pop {
    0% {
        transform: scale(0.6);
        opacity: 0;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* FAIL */
.fail {
    display: none;
    margin-top: 20px;
    color: #d93025;
    font-weight: 500;
}

.info {
    background: #052352;
    color: #fff;
    padding: 50px;
}

.info h2 {
    margin-bottom: 20px;
}

/* CONTACT INFO CONTENT */
.info h3 {
    margin-top: 0;
    margin-bottom: 14px;
    font-size: 22px;
    font-weight: 600;
    background: -webkit-linear-gradient(#FF72C0, #9e3770);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
}

.info ul {
    list-style: none;
    padding: 0;
    margin: 0 0 32px 0;
}

.info li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 12px;
    font-size: 15px;
    line-height: 1.5;
    color: #e6ecf3;
}

.info i {
    font-size: 18px;
}

/* ikonit / emoji tasapainoon */
.info li span,
.info li::before {
    flex-shrink: 0;
}

/* erottele osiot kevyesti */
.info h3 + ul {
    padding-bottom: 28px;
    border-bottom: 1px solid rgba(255,255,255,0.15);
}

/* viimeinen osio ilman viivaa */
.info ul:last-of-type {
    border-bottom: none;
    padding-bottom: 0;
}

/* pienempi teksti lisähuomioille */
.info .privacy-note {
    margin-top: 28px;
    font-size: 13px;
    color: rgba(255,255,255,0.8);
    line-height: 1.4;
}

@media (max-width: 600px) {
    .info h3 {
        font-size: 18px;
    }

    .info li {
        font-size: 14px;
    }
}

/* INFO SEQUENTIAL ANIMATION */
.info-block h3,
.info-block li {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

/* ENSIMMÄINEN BLOKKI */
.info.animate .info-block.first h3 {
    opacity: 1;
    transform: translateY(0);
}

.info.animate .info-block.first li {
    opacity: 1;
    transform: translateY(0);
}

.info-block.first {
    margin-bottom: 28px;
    border-bottom: 1px solid rgba(255,255,255,0.15);
}

/* porrastus ensimmäiselle */
.info.animate .info-block.first li:nth-child(1) { transition-delay: 0.15s; }
.info.animate .info-block.first li:nth-child(2) { transition-delay: 0.30s; }
.info.animate .info-block.first li:nth-child(3) { transition-delay: 0.45s; }
.info.animate .info-block.first li:nth-child(4) { transition-delay: 0.60s; }
.info.animate .info-block.first li:nth-child(5) { transition-delay: 0.75s; }
.info.animate .info-block.first li:nth-child(6) { transition-delay: 0.90s; }

/* TOINEN BLOKKI – alkaa myöhemmin */
.info.animate .info-block.second h3 {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.9s;
}

.info.animate .info-block.second li {
    opacity: 1;
    transform: translateY(0);
}

/* porrastus toiselle */
.info.animate .info-block.second li:nth-child(1) { transition-delay: 1.05s; }
.info.animate .info-block.second li:nth-child(2) { transition-delay: 1.20s; }
.info.animate .info-block.second li:nth-child(3) { transition-delay: 1.35s; }
.info.animate .info-block.second li:nth-child(4) { transition-delay: 1.50s; }
.info.animate .info-block.second li:nth-child(5) { transition-delay: 1.75s; }
.info.animate .info-block.second li:nth-child(6) { transition-delay: 1.90s; }


@media (max-width: 900px) {
    .card {
        grid-template-columns: 1fr;
    }
}

/* CONTACT SECTION ANIMAATIO */
.contact-section {
    width: 100%;
        max-width: 1000px;
        margin: 0 auto;
    opacity: 0;
    transform: translateY(60px);
    transition:
        opacity 2s ease,
        transform 2s ease;
}

.contact-section.animate {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 600px) {

    .pricing-card,
    .service-card,
    .contact-section {
        transition-duration: 0.5s;
        transform: none !important;
    }

        .card {
            border-radius: 14px;
            box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
            border-top-right-radius: 5em;
        }

        h1 {
            font-size: 28px;
        }
    
        h2 {
            font-size: 24px;
        }
    
        h3 {
            font-size: 20px;
        }

                input,
                textarea {
                    font-size: 16px;
                }
}