:root {
    --primary: #c1121f;
    /* Cardital Red - Strong and professional */
    --primary-light: #fdf0f0;
    --dark: #003049;
    --secondary: #669bbc;
    --bg-light: #f8f9fa;
    --white: #ffffff;
    --text-main: #334155;
    --text-muted: #64748b;
    --glass: rgba(255, 255, 255, 0.85);
    --border: rgba(226, 232, 240, 0.8);
    --shadow-soft: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
    --shadow-hover: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -6px rgba(0, 0, 0, 0.1);
    --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: var(--text-main);
    background-color: var(--bg-light);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    min-height: 100vh;
}

/* Background Decorations */
.bg-decoration {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.glow-circle {
    position: absolute;
    filter: blur(100px);
    border-radius: 50%;
    opacity: 0.3;
}

.glow-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--primary) 0%, transparent 70%);
    top: -300px;
    right: -100px;
}

.glow-2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--secondary) 0%, transparent 70%);
    bottom: -200px;
    left: -100px;
}

.main-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 1;
}

/* Hero Section */
.hero-section {
    text-align: center;
    margin-bottom: 4rem;
    animation: slideDown 1s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.main-product-display {
    margin-bottom: 2rem;
}

.product-hero-img {
    max-width: 280px;
    height: auto;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.15));
    transition: var(--transition);
}

.product-hero-img:hover {
    transform: scale(1.05) rotate(-2deg);
}

.main-title {
    font-size: 2.75rem;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 0.75rem;
    letter-spacing: -0.025em;
}

.main-subtitle {
    font-size: 1.15rem;
    color: var(--text-muted);
    font-weight: 400;
    max-width: 600px;
    margin: 0 auto;
}

/* Selector Grid */
.selector-container {
    width: 100%;
}

.grid-countries {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
    width: 100%;
}

.card-country {
    background: var(--glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: 1.5rem;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    transition: var(--transition);
    box-shadow: var(--shadow-soft);
    position: relative;
    animation: cardFadeIn 0.8s ease-out forwards;
    opacity: 0;
    animation-delay: calc(var(--order) * 0.1s);
}

@keyframes cardFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card-country:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary);
    background: var(--white);
}

.flag-box {
    width: 64px;
    height: 64px;
    flex-shrink: 0;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--white);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.flag-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.country-info {
    flex-grow: 1;
}

.country-info h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 0.2rem;
}

.native-name {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.btn-redirect {
    padding: 0.6rem 1.2rem;
    background-color: var(--primary);
    color: var(--white);
    text-decoration: none;
    border-radius: 0.75rem;
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
    border: 2px solid var(--primary);
    white-space: nowrap;
}

.btn-redirect:hover {
    background-color: transparent;
    color: var(--primary);
}

/* Trust Section Styling */
.trust-container {
    margin-top: 5rem;
    padding: 4rem 2rem;
    background: var(--white);
    border-radius: 2rem;
    border: 1px solid var(--border);
    width: 100%;
    max-width: 1000px;
    /* Consolidate width */
    box-shadow: var(--shadow-soft);
    box-sizing: border-box;
}

.trust-header {
    margin-bottom: 3.5rem;
    text-align: center;
}

.trust-icons-img {
    max-width: 450px;
    width: 100%;
    height: auto;
    margin-bottom: 2rem;
}

.trust-header h2 {
    font-size: 2.2rem;
    color: var(--dark);
    margin-bottom: 0.75rem;
}

.trust-header p {
    color: var(--primary);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-size: 0.95rem;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    margin-top: 2rem;
}

.step-item {
    background: var(--bg-light);
    padding: 2.5rem 1.5rem;
    border-radius: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.5rem;
    transition: var(--transition);
    border: 1px solid transparent;
}

.step-item:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary);
    background: var(--white);
}

.step-number {
    background: var(--primary);
    color: var(--white);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-weight: 800;
    flex-shrink: 0;
    font-size: 1.1rem;
    box-shadow: 0 6px 15px rgba(193, 18, 31, 0.25);
}

.step-content h4 {
    font-size: 1.2rem;
    color: var(--dark);
    margin-bottom: 0.75rem;
    font-weight: 700;
}

.step-content p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* Footer (Updated) */
.main-footer {
    margin: 5rem 0 3rem;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.95rem;
    width: 100%;
}

@media (max-width: 992px) {
    .steps-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin: 0 auto;
    }
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .main-wrapper {
        padding: 1rem;
        width: 100%;
        overflow-x: hidden;
    }

    .main-title {
        font-size: 2rem;
    }

    .grid-countries {
        display: flex;
        flex-direction: column;
        align-items: center;
        /* Center cards vertically in the column */
        gap: 1.5rem;
        width: 100%;
    }

    .card-country {
        width: 100%;
        max-width: 350px;
        /* Prevent cards from being too wide but keep them centered */
        padding: 1.25rem;
        justify-content: center;
        /* Center content horizontally inside the card */
        margin: 0 auto;
    }

    .flag-box {
        width: 50px;
        height: 50px;
    }

    .btn-redirect {
        padding: 0.5rem 1rem;
    }

    .trust-container {
        padding: 2rem 1rem;
        margin-top: 3rem;
    }

    .steps-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        width: 100%;
    }

    .step-item {
        max-width: 100%;
        padding: 1.5rem;
    }

    .trust-icons-img {
        max-width: 280px;
    }
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-light);
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}