/* 
   Theme: Modern Fintech / Remittances 
   Primary Colors: Trust Blue, Energetic Green (WhatsApp), Warm Yellow (accent)
*/

:root {
    /* Colors */
    --primary: #990011;
    /* Original Red */
    --primary-dark: #172B4D;
    /* Deep Blue */
    --secondary: #25D366;
    /* WhatsApp Green */
    /* WhatsApp Green */
    --secondary-dark: #128C7E;
    --accent: #FFAB00;
    --dark: #333333;
    --light: #f8f9fa;
    --white: #FFFFFF;
    --gray: #666666;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #990011 0%, #172B4D 100%);
    --gradient-text: linear-gradient(90deg, #990011, #172B4D);

    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Spacing & Layout */
    --container-width: 1200px;
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 8px 16px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 16px 32px rgba(0, 0, 0, 0.15);

    /* Transitions */
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--dark);
    line-height: 1.6;
    background-color: var(--white);
    overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* Utilities */
.highlight {
    color: var(--primary);
}

.gradient-text {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    background-clip: text;
    /* Compatibility */
    -webkit-text-fill-color: transparent;
}

.btn-primary,
.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    gap: 8px;
    transition: var(--transition);
    border: none;
}

.btn-primary {
    background: var(--secondary);
    color: var(--white);
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

.btn-primary:hover {
    background: var(--secondary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(37, 211, 102, 0.4);
}

.btn-secondary {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-secondary:hover {
    background: var(--primary);
    color: var(--white);
}

.btn-lg {
    padding: 16px 32px;
    font-size: 1.1rem;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: var(--shadow-sm);
    padding: 16px 0;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-text {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--dark);
}

.nav-links {
    display: flex;
    gap: 32px;
    align-items: center;
}

.nav-links a:not(.btn-primary) {
    font-weight: 500;
    color: var(--gray);
}

.nav-links a:not(.btn-primary):hover {
    color: var(--primary);
}

/* Hero Section */
.hero {
    padding-top: 140px;
    padding-bottom: 80px;
    background: linear-gradient(180deg, #F0F4FF 0%, #FFFFFF 100%);
    position: relative;
    overflow: hidden;
}

/* Multi-Step Flow Container */
.flow-container {
    max-width: 800px;
    margin: 0 auto;
}

.step-card-container {
    background: var(--white);
    padding: 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    margin-top: 20px;
}

/* Progress Stepper */
.progress-stepper {
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
    position: relative;
    padding: 0 10px;
}

.progress-stepper::before {
    content: '';
    position: absolute;
    top: 15px;
    left: 0;
    right: 0;
    height: 2px;
    background: #eee;
    z-index: 1;
}

.step {
    position: relative;
    z-index: 2;
    background: var(--white);
    padding: 0 10px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #ccc;
    text-align: center;
}

.step.active {
    color: var(--primary);
}

.step::before {
    content: '';
    display: block;
    width: 30px;
    height: 30px;
    background: #eee;
    border-radius: 50%;
    margin: 0 auto 8px;
    border: 3px solid var(--white);
}

.step.active::before {
    background: var(--primary);
    box-shadow: 0 0 0 3px rgba(255, 126, 0, 0.2);
}

/* Form Steps */
.form-step {
    display: none;
    animation: fadeIn 0.4s ease-out;
}

.form-step.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Calculator Box */
.calculator-box h2 {
    text-align: center;
    margin-bottom: 30px;
}

.calc-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 30px;
}

.calc-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #555;
    font-size: 0.9rem;
}

.input-wrapper {
    position: relative;
}

.input-wrapper input {
    width: 100%;
    padding: 15px 15px;
    border: 2px solid #eee;
    border-radius: var(--radius-sm);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--dark);
    transition: var(--transition);
}

.input-wrapper input:focus {
    border-color: var(--primary);
    outline: none;
}

.input-wrapper .currency {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-weight: 700;
    color: #aaa;
    font-size: 0.85rem;
}

.calc-details {
    background: #fdf7f2;
    padding: 20px;
    border-radius: var(--radius-sm);
    margin-bottom: 30px;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 0.95rem;
    color: #666;
}

.detail-item.total {
    border-top: 1px solid #eccfb5;
    padding-top: 15px;
    margin-top: 5px;
    color: var(--dark);
    font-weight: 800;
    font-size: 1.2rem;
}

.btn-block {
    width: 100%;
    padding: 18px;
    font-size: 1.1rem;
    border-radius: var(--radius-sm);
}

/* Recipient Form */
.payment-type-selector {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
}

.type-btn {
    flex: 1;
    padding: 12px;
    border: 2px solid #eee;
    background: white;
    border-radius: var(--radius-sm);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.type-btn.active {
    border-color: var(--primary);
    color: var(--primary);
    background: #fff8f0;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 0.9rem;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 1rem;
}

.btn-group {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.btn-group button {
    flex: 1;
}

/* Payment Methods */
.payment-methods-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 20px;
}

.method-card {
    padding: 30px 20px;
    border: 2px solid #eee;
    border-radius: var(--radius-md);
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
}

.method-card i {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: var(--primary);
}

.method-card.active {
    border-color: var(--primary);
    background: #fff8f0;
}

.deposit-options {
    display: flex;
    gap: 20px;
    margin-top: 10px;
}

.deposit-opt {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

/* Success Box */
.success-box {
    text-align: center;
}

.success-icon {
    font-size: 4rem;
    color: var(--secondary);
    margin-bottom: 20px;
}

.phone-input-group {
    display: flex;
    align-items: stretch;
}

.phone-input-group .prefix {
    background: #f0f4ff;
    border: 1px solid #ddd;
    border-right: none;
    padding: 0 15px;
    display: flex;
    align-items: center;
    border-radius: 6px 0 0 6px;
    font-weight: 700;
    color: #555;
    font-size: 0.95rem;
}

.phone-input-group input {
    border-radius: 0 6px 6px 0 !important;
    flex: 1;
}

.note-info {
    display: block;
    margin-top: 8px;
    color: var(--primary);
    font-size: 0.85rem;
    font-weight: 600;
}

.sender-info {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.note {
    font-size: 0.9rem;
    color: #777;
    margin-bottom: 20px;
}

.instructions-box {
    background: #fff8f0;
    border: 2px dashed var(--primary);
    padding: 20px;
    border-radius: var(--radius-sm);
    margin: 20px 0;
    text-align: left;
    color: var(--dark);
    line-height: 1.5;
}

.instructions-box h1,
.instructions-box h2,
.instructions-box h3 {
    margin-top: 0;
    margin-bottom: 10px;
    color: var(--primary);
}

.instructions-box p {
    margin-bottom: 8px;
}

.alert-info {
    background: #fff3cd;
    color: #856404;
    padding: 12px;
    border-radius: 6px;
    margin-bottom: 20px;
    font-size: 0.9rem;
    text-align: center;
}

/* Steps Section */
.steps-section {
    padding: 80px 0;
    background: var(--white);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.section-header p {
    color: var(--gray);
    font-size: 1.125rem;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.step-card {
    background: var(--white);
    padding: 32px;
    border-radius: var(--radius-md);
    text-align: center;
    transition: var(--transition);
    border: 1px solid var(--light);
}

.step-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: transparent;
}

.step-icon {
    width: 80px;
    height: 80px;
    background: #F0F4FF;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--primary);
    margin: 0 auto 24px;
}

.step-card h3 {
    margin-bottom: 12px;
    font-size: 1.25rem;
}

.step-card p {
    color: var(--gray);
}

/* Benefits Section */
.benefits-section {
    padding: 80px 0;
    background: var(--light);
}

.benefits-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.benefits-list li {
    display: flex;
    gap: 20px;
    margin-bottom: 32px;
}

.benefits-list i {
    width: 48px;
    height: 48px;
    background: var(--white);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.25rem;
    box-shadow: var(--shadow-sm);
    flex-shrink: 0;
}

.benefits-list h4 {
    margin-bottom: 8px;
    font-size: 1.1rem;
}

.benefits-list p {
    color: var(--gray);
    font-size: 0.95rem;
}

.abstract-shape {
    width: 100%;
    height: 400px;
    background: var(--gradient-primary);
    border-radius: var(--radius-lg);
    opacity: 0.9;
    position: relative;
    overflow: hidden;
}

/* CTA Section */
.cta-section {
    padding: 80px 0;
}

.cta-box {
    background: var(--primary-dark);
    color: var(--white);
    text-align: center;
    padding: 60px 20px;
    border-radius: var(--radius-lg);
}

.cta-box h2 {
    margin-bottom: 16px;
    font-size: 2.25rem;
}

.cta-box p {
    margin-bottom: 32px;
    font-size: 1.125rem;
    opacity: 0.9;
}

/* Footer */
footer {
    background: var(--dark);
    color: var(--white);
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 40px;
}

.footer-brand .logo-text {
    color: var(--white);
    display: block;
    margin-bottom: 16px;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.6);
    max-width: 300px;
}

.footer-links h4,
.footer-social h4 {
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.6);
}

.footer-links a:hover {
    color: var(--white);
}

.social-icons {
    display: flex;
    gap: 16px;
}

.social-icons a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.social-icons a:hover {
    background: var(--primary);
    color: var(--white);
}

.footer-bottom {
    text-align: center;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.9rem;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

/* Responsive */
@media (max-width: 968px) {
    .container {
        padding: 0 15px;
    }

    .hero-text h1 {
        font-size: 2.5rem;
    }

    .nav-links {
        display: none;
    }

    .steps-grid {
        grid-template-columns: 1fr;
    }

    .benefits-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-brand,
    .footer-links,
    .social-icons {
        align-items: center;
        justify-content: center;
    }
}

@media (max-width: 600px) {

    .calc-row,
    .payment-methods-grid {
        grid-template-columns: 1fr;
    }

    .progress-stepper .step {
        font-size: 0.7rem;
    }
}