* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Segoe UI", Arial, sans-serif;
    background: radial-gradient(circle at top, #0f2e59 0%, #091b36 52%, #071326 100%);
    color: #0f1f38;
}

.page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 28px;
}

.card {
    width: 100%;
    max-width: 980px;
    background: linear-gradient(170deg, #ffffff 0%, #f4f8ff 100%);
    border-radius: 22px;
    padding: 34px;
    box-shadow: 0 24px 46px rgba(4, 16, 36, 0.32);
    border: 1px solid rgba(138, 173, 224, 0.32);
}

.hero h1 {
    margin: 10px 0 12px;
    font-size: 2.2rem;
    color: #0d2c57;
}

.tag {
    margin: 0;
    color: #0a4da0;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.74rem;
}

.subtitle {
    margin: 0 0 22px;
    color: #425d84;
    max-width: 760px;
    line-height: 1.5;
}

.carrier-panel {
    background: linear-gradient(180deg, #ecf4ff 0%, #f7fbff 100%);
    border: 1px solid #d2e3ff;
    border-radius: 16px;
    padding: 18px;
    margin-bottom: 22px;
}

.carrier-panel h2 {
    margin: 0 0 14px;
    font-size: 1.12rem;
    color: #123a70;
}

.carrier-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.carrier-item {
    border: 1px solid #c9dcff;
    background: #ffffff;
    border-radius: 12px;
    padding: 12px 10px;
    height: auto;
    min-height: 104px;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 8px;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.carrier-item:hover {
    transform: translateY(-2px);
    border-color: #8eb6ff;
    box-shadow: 0 8px 18px rgba(36, 88, 170, 0.16);
}

.carrier-item.selected {
    border-color: #2a6ee0;
    box-shadow: 0 10px 20px rgba(41, 103, 205, 0.22);
    background: linear-gradient(180deg, #ffffff 0%, #edf4ff 100%);
}

.logo {
    width: 56px;
    height: 30px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    color: #ffffff;
}

.logo.dhl { background: #d61a1a; }
.logo.fedex { background: #5d2da8; }
.logo.ups { background: #6a4a1f; }
.logo.tnt { background: #e36c10; }
.logo.aramex { background: #d6322a; }
.logo.ems { background: #0059b3; }
.logo.sf { background: #191919; }
.logo.dpd { background: #a6122f; }

.carrier-name {
    font-size: 0.9rem;
    font-weight: 700;
    color: #14355f;
}

.carrier-price {
    font-size: 0.86rem;
    color: #42658f;
    font-weight: 600;
}

.carrier-panel p {
    margin: 12px 0 0;
    color: #4a6285;
    line-height: 1.5;
}

.shipping-promise {
    margin: 0 0 20px;
    padding: 14px 16px;
    border-radius: 14px;
    border: 1px solid #cfe2ff;
    background: linear-gradient(180deg, #f5faff 0%, #edf5ff 100%);
}

.shipping-promise h3 {
    margin: 0 0 6px;
    font-size: 1rem;
    color: #123f77;
}

.shipping-promise p {
    margin: 0;
    font-size: 0.9rem;
    color: #405e85;
    line-height: 1.5;
}

.fee-panel {
    background: linear-gradient(120deg, #102f59, #0d2748);
    border-radius: 16px;
    padding: 18px;
    color: #e7f0ff;
    margin-bottom: 20px;
}

.fee-panel h3 {
    margin: 0 0 12px;
    font-size: 1.02rem;
    letter-spacing: 0.03em;
}

.fee-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px dashed rgba(198, 219, 255, 0.22);
    padding: 8px 0;
    font-size: 0.92rem;
}

.fee-row.total {
    border-bottom: none;
    font-size: 1rem;
    padding-top: 12px;
}

.fee-row strong {
    color: #ffffff;
}

.location-note {
    margin: 12px 0 0;
    font-size: 0.84rem;
    color: #b8d5ff;
}

.register-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.field-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

label {
    font-size: 0.92rem;
    font-weight: 600;
    color: #2a3f64;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

input {
    width: 100%;
    height: 44px;
    border: 1px solid #c5d6f3;
    border-radius: 10px;
    padding: 0 12px;
    font-size: 0.96rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
    background-color: #fbfdff;
}

input:focus {
    outline: none;
    border-color: #2e72da;
    box-shadow: 0 0 0 3px rgba(46, 114, 218, 0.16);
    background-color: #ffffff;
}

.register-form button {
    position: relative;
    overflow: hidden;
    height: 48px;
    border: none;
    border-radius: 10px;
    background: linear-gradient(90deg, #f18700, #f6ad1f);
    color: #ffffff;
    font-size: 1.02rem;
    font-weight: 700;
    cursor: pointer;
    letter-spacing: 0.02em;
    box-shadow: 0 10px 20px rgba(232, 140, 0, 0.26);
    transition: transform 0.14s ease, filter 0.2s ease, box-shadow 0.24s ease;
}

.register-form button:hover {
    filter: brightness(1.04);
    transform: translateY(-1px);
    box-shadow: 0 14px 28px rgba(232, 140, 0, 0.32);
}

.register-form button:active {
    transform: translateY(1px) scale(0.992);
}

.register-form button::before {
    content: "";
    position: absolute;
    top: 0;
    left: -120%;
    width: 70%;
    height: 100%;
    background: linear-gradient(
        120deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.35) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    transform: skewX(-22deg);
    transition: left 0.55s ease;
}

.register-form button:hover::before {
    left: 140%;
}

.register-form button.processing {
    pointer-events: none;
    filter: saturate(1.08);
}

.register-form button .ripple {
    position: absolute;
    border-radius: 50%;
    transform: scale(0);
    background: rgba(255, 255, 255, 0.45);
    animation: pay-ripple 520ms ease-out;
    pointer-events: none;
}

@keyframes pay-ripple {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

.message {
    margin: 0;
    min-height: 22px;
    font-size: 0.92rem;
    font-weight: 600;
}

.message.success {
    color: #157239;
}

@media (max-width: 720px) {
    .card {
        padding: 20px 16px;
    }

    .hero h1 {
        font-size: 1.6rem;
    }

    .carrier-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .field-grid {
        grid-template-columns: 1fr;
    }

    .carrier-item {
        min-height: 98px;
        padding: 10px;
    }

    .carrier-name {
        font-size: 0.85rem;
    }

    .carrier-price {
        font-size: 0.82rem;
    }
}

@media (max-width: 480px) {
    .page {
        padding: 12px;
    }

    .card {
        border-radius: 16px;
        padding: 14px 12px;
    }

    .hero h1 {
        font-size: 1.35rem;
        margin: 8px 0 10px;
    }

    .subtitle {
        font-size: 0.92rem;
    }

    .carrier-panel,
    .fee-panel,
    .shipping-promise {
        padding: 12px;
        border-radius: 12px;
    }

    .carrier-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    .carrier-item {
        min-height: 82px;
        padding: 9px 8px;
        gap: 6px;
    }

    .logo {
        width: 48px;
        height: 28px;
        font-size: 0.72rem;
    }

    .carrier-name {
        font-size: 0.8rem;
        line-height: 1.2;
    }

    .carrier-price {
        font-size: 0.8rem;
    }

    .fee-row {
        font-size: 0.88rem;
        gap: 10px;
    }

    label {
        font-size: 0.88rem;
    }

    input {
        height: 42px;
        font-size: 0.92rem;
    }

    .register-form button {
        height: 46px;
        font-size: 0.96rem;
    }
}
