/* style.css */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-blue: #1e3a8a;
    --primary-green: #22c55e;
    --dark-bg: #0f172a;
    --light-bg: #f8fafc;
    --text-dark: #1e293b;
    --text-light: #64748b;
    --white: #ffffff;
    --border-radius: 12px;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--light-bg);
    color: var(--text-dark);
    line-height: 1.6;
}

.container {
    max-width: 480px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Header */
.header {
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-green));
    color: var(--white);
    padding: 20px 0;
    border-radius: 0 0 30px 30px;
    box-shadow: var(--shadow);
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 10px;
}

.logo-icon {
    font-size: 40px;
    color: var(--white);
}

.logo-text h1 {
    font-size: 24px;
    font-weight: 700;
}

.logo-text span {
    font-size: 14px;
    opacity: 0.9;
}

.location {
    font-size: 12px;
    opacity: 0.9;
    text-align: center;
}

/* Hero */
.hero {
    text-align: center;
    padding: 30px 20px;
    background: var(--white);
    margin: 20px 0;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.hero h2 {
    color: var(--primary-blue);
    font-size: 22px;
    margin-bottom: 10px;
}

.tagline {
    color: var(--primary-green);
    font-size: 16px;
    font-weight: 600;
}

/* Form */
.transfer-form {
    background: var(--white);
    padding: 20px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    margin-bottom: 30px;
}

.form-section {
    margin-bottom: 25px;
    padding-bottom: 25px;
    border-bottom: 1px solid #e2e8f0;
}

.form-section:last-child {
    border-bottom: none;
}

.form-section h3 {
    color: var(--primary-blue);
    font-size: 16px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-dark);
    font-size: 14px;
}

.form-group input[type="text"],
.form-group input[type="tel"],
.form-group input[type="number"] {
    width: 100%;
    padding: 12px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-green);
}

/* Wallet Selector */
.wallet-selector {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.wallet-option {
    cursor: pointer;
}

.wallet-option input[type="radio"] {
    display: none;
}

.wallet-card {
    padding: 15px 10px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    text-align: center;
    transition: all 0.3s;
}

.wallet-card i {
    font-size: 24px;
    margin-bottom: 5px;
    display: block;
}

.wallet-card span {
    font-size: 12px;
    font-weight: 600;
}

.wallet-option input:checked + .wallet-card {
    border-color: var(--primary-green);
    background: #f0fdf4;
}

.wallet-card.dmoney { color: #3b82f6; }
.wallet-card.waafi { color: #22c55e; }
.wallet-card.cacpay { color: #f59e0b; }

/* Fee Calculation */
.fee-calculation {
    background: #f8fafc;
    padding: 15px;
    border-radius: 8px;
    margin-top: 10px;
}

.fee-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #e2e8f0;
}

.fee-row.total {
    border-bottom: none;
    font-weight: 700;
    color: var(--primary-green);
    font-size: 18px;
}

/* Submit Button */
.btn-submit {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-green));
    color: var(--white);
    border: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-submit:active {
    transform: scale(0.98);
}

/* Features */
.features {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-top: 20px;
    text-align: center;
}

.feature {
    padding: 10px 5px;
}

.feature i {
    font-size: 24px;
    color: var(--primary-green);
    margin-bottom: 5px;
}

.feature span {
    font-size: 11px;
    font-weight: 600;
}

/* Footer */
.footer {
    background: var(--dark-bg);
    color: var(--white);
    padding: 30px 20px;
    text-align: center;
    border-radius: 30px 30px 0 0;
}

.contact-info p {
    margin: 10px 0;
    font-size: 14px;
}

.contact-info i {
    margin-right: 8px;
    color: var(--primary-green);
}

.copyright {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #334155;
    font-size: 12px;
    opacity: 0.8;
}

.slogan {
    margin-top: 10px;
    font-style: italic;
    color: var(--primary-green);
    font-size: 14px;
}

/* Success Card */
.success-card {
    background: var(--white);
    padding: 30px 20px;
    border-radius: var(--border-radius);
    text-align: center;
    margin: 20px 0;
}

.success-icon {
    font-size: 80px;
    color: var(--primary-green);
    margin-bottom: 20px;
}

.transfer-details {
    background: #f8fafc;
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
    text-align: left;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #e2e8f0;
}

.detail-row.highlight {
    background: #fef3c7;
    padding: 10px;
    border-radius: 8px;
    margin: 10px 0;
}

.detail-row.total {
    font-size: 20px;
    color: var(--primary-green);
    font-weight: 700;
    border-bottom: none;
}

.instructions {
    background: #eff6ff;
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
    text-align: left;
}

.instructions h3 {
    color: var(--primary-blue);
    margin-bottom: 15px;
}

.instructions ol {
    padding-left: 20px;
}

.instructions li {
    margin: 10px 0;
}

.payment-info {
    background: #fef3c7;
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
}

.payment-number {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-blue);
    margin: 10px 0;
}

.btn-home {
    display: inline-block;
    padding: 15px 30px;
    background: var(--primary-blue);
    color: var(--white);
    text-decoration: none;
    border-radius: 8px;
    margin-top: 20px;
    font-weight: 600;
}

/* Responsive */
@media (max-width: 480px) {
    .wallet-selector {
        grid-template-columns: 1fr;
    }
    
    .features {
        grid-template-columns: repeat(2, 1fr);
    }
}