/* ===========================
   Buttons
=========================== */

.btn {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    gap: 10px;

    padding: 14px 28px;

    border-radius: 14px;

    font-weight: 600;

    transition:

        transform .35s ease,

        box-shadow .35s ease,

        background .35s ease;

}

.primary-btn {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    gap: 10px;

    padding: 14px 28px;

    border-radius: 14px;

    background: linear-gradient(135deg,
            #3B82F6,
            #2563EB);

    color: white;

    font-weight: 600;

    transition:
        transform .35s ease,
        box-shadow .35s ease,
        background .35s ease;

}

.primary-btn:hover {

    transform: translateY(-3px);

    box-shadow:

        0 12px 28px rgba(59, 130, 246, .35);

}

.login-btn {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    padding: 12px 20px;

    background: transparent;

    color: white;

    transition: .3s;

}

.login-btn:hover {

    color: #38BDF8;

}

.secondary-btn {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    gap: 10px;

    padding: 14px 28px;

    border-radius: 14px;

    background: rgba(255, 255, 255, .03);

    color: white;

    border: 1px solid rgba(255, 255, 255, .08);

    font-weight: 600;

    transition:
        transform .35s ease,
        background .35s ease;

}

.secondary-btn:hover {

    background: rgba(255, 255, 255, .08);

    transform: translateY(-3px);

}

/* ===========================
   Animations
=========================== */

.hero-content {

    animation: slideLeft .9s ease both;

}

.hero-card {

    animation: slideUp 1s ease both;

}

.hero-badge svg,
.trip-label svg {
    width: 18px;
    height: 18px;
    stroke-width: 1.8;
}

.trip-label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

@keyframes slideLeft {

    from {

        opacity: 0;

        transform: translateX(-60px);

    }

    to {

        opacity: 1;

        transform: none;

    }

}

@keyframes slideUp {

    from {

        opacity: 0;

        transform: translateY(60px);

    }

    to {

        opacity: 1;

        transform: none;

    }

}

/* ===========================
   Form Components
=========================== */

.form-group {
    display: grid;
    gap: 9px;
}

.form-group label {
    color: #cbd5e1;
    font-size: 14px;
    font-weight: 600;
}

.form-group-full {
    grid-column: 1 / -1;
}

.field-wrapper {
    min-height: 58px;

    display: flex;
    align-items: center;

    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 14px;

    background: rgba(15, 23, 42, 0.72);

    transition:
        border-color 0.25s ease,
        box-shadow 0.25s ease,
        background 0.25s ease;
}

.field-wrapper:focus-within {
    border-color: rgba(56, 189, 248, 0.72);

    background: rgba(15, 23, 42, 0.94);

    box-shadow:
        0 0 0 4px rgba(56, 189, 248, 0.1),
        0 12px 35px rgba(0, 0, 0, 0.18);
}

.field-wrapper > svg {
    width: 19px;
    height: 19px;

    flex-shrink: 0;

    margin-left: 17px;

    color: #64748b;
}

.field-wrapper input,
.field-wrapper select {
    width: 100%;

    padding: 17px 14px;

    border: none;
    outline: none;

    background: transparent;

    color: #f8fafc;

    font-family: inherit;
    font-size: 15px;
}

.field-wrapper select {
    cursor: pointer;
}

.field-wrapper select option {
    background: #0f172a;
    color: #f8fafc;
}

.field-wrapper input::placeholder {
    color: #475569;
}

.field-unit {
    padding-right: 17px;

    color: #64748b;

    font-size: 13px;
    white-space: nowrap;
}

.trip-type-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);

    gap: 14px;
}

.trip-type-option {
    position: relative;

    cursor: pointer;
}

.trip-type-option input {
    position: absolute;

    opacity: 0;
    pointer-events: none;
}

.trip-type-option span {
    min-height: 58px;

    display: flex;
    align-items: center;
    justify-content: center;

    gap: 10px;

    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 14px;

    background: rgba(15, 23, 42, 0.72);

    color: #94a3b8;

    transition:
        border-color 0.25s ease,
        background 0.25s ease,
        color 0.25s ease,
        transform 0.25s ease;
}

.trip-type-option span svg {
    width: 18px;
    height: 18px;
}

.trip-type-option input:checked + span {
    border-color: rgba(56, 189, 248, 0.65);

    background: rgba(56, 189, 248, 0.1);

    color: #7dd3fc;

    box-shadow:
        inset 0 0 20px rgba(56, 189, 248, 0.04);
}

.trip-type-option:hover span {
    transform: translateY(-2px);
}

.calculate-btn {
    width: 100%;

    margin-top: 8px;
}

.calculate-btn svg {
    width: 19px;
    height: 19px;
}

.form-error {
    min-height: 20px;

    color: #fb7185;

    font-size: 14px;
    text-align: center;
}

.form-success{

    min-height:22px;

    color:#22C55E;

    font-size:14px;

    text-align:center;

    font-weight:600;

}
.epdk-loader {
    position: fixed;
    z-index: 9999;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 24px;
    visibility: hidden;
    opacity: 0;
    background: rgba(2, 6, 23, .38);
    backdrop-filter: blur(9px) saturate(.75);
    -webkit-backdrop-filter: blur(9px) saturate(.75);
    transition: opacity .22s ease, visibility .22s ease;
}

body.epdk-loading { overflow: hidden; }
body.epdk-loading .epdk-loader { visibility: visible; opacity: 1; }

.epdk-loader-card {
    display: grid;
    min-width: min(310px, calc(100vw - 48px));
    padding: 28px 30px 25px;
    place-items: center;
    border: 1px solid rgba(56, 189, 248, .3);
    border-radius: 24px;
    color: #f8fafc;
    background: linear-gradient(145deg, rgba(15, 23, 42, .98), rgba(7, 13, 27, .96));
    box-shadow: 0 28px 90px rgba(2, 6, 23, .62), 0 0 45px rgba(14, 165, 233, .12);
    text-align: center;
    transform: translateY(10px) scale(.97);
    transition: transform .25s ease;
}

body.epdk-loading .epdk-loader-card { transform: translateY(0) scale(1); }
.epdk-loader-card strong { margin-top: 18px; font-size: 15px; }
.epdk-loader-card small { margin-top: 7px; color: #64748b; }

.epdk-loader-ring {
    position: relative;
    display: grid;
    width: 68px;
    height: 68px;
    place-items: center;
    border-radius: 50%;
    color: #7dd3fc;
    background: rgba(14, 165, 233, .1);
}

.epdk-loader-ring::before {
    content: "";
    position: absolute;
    inset: -1px;
    border: 3px solid rgba(125, 211, 252, .16);
    border-top-color: #38bdf8;
    border-right-color: #2563eb;
    border-radius: inherit;
    animation: epdkLoaderSpin .8s linear infinite;
}

.epdk-loader-ring svg { width: 26px; height: 26px; animation: epdkLoaderPulse 1.2s ease-in-out infinite; }

@keyframes epdkLoaderSpin { to { transform: rotate(360deg); } }
@keyframes epdkLoaderPulse { 50% { opacity: .55; transform: scale(.88); } }

@media (prefers-reduced-motion: reduce) {
    .epdk-loader-ring::before,
    .epdk-loader-ring svg { animation-duration: 2s; }
}
