/* style.css */
:root {
    --primary-color: #4f46e5; /* Indigo 600 */
    --primary-hover: #4338ca; /* Indigo 700 */
    --bg-color: #f3f4f6; /* Gray 100 */
    --box-bg: #ffffff;
    --text-main: #111827; /* Gray 900 */
    --text-muted: #6b7280; /* Gray 500 */
    --border-color: #e5e7eb; /* Gray 200 */
    --error-bg: #fef2f2;
    --error-text: #b91c1c;
    --success-bg: #f0fdf4;
    --success-text: #15803d;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

.payment-container {
    background: var(--box-bg);
    width: 100%;
    max-width: 420px;
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
}

.payment-header {
    text-align: center;
    margin-bottom: 24px;
}

.payment-header h1 {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 8px;
}

.amount-display {
    font-size: 16px;
    color: var(--text-muted);
}

.amount-display strong {
    color: var(--primary-color);
    font-size: 20px;
}

.alert {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 24px;
    font-size: 14px;
    font-weight: 500;
}

.alert.error {
    background-color: var(--error-bg);
    color: var(--error-text);
    border: 1px solid #fecaca;
}

.alert.success {
    background-color: var(--success-bg);
    color: var(--success-text);
    border: 1px solid #bbf7d0;
}

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--text-main);
}

.form-group input {
    width: 100%;
    padding: 12px 16px;
    font-size: 15px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    transition: all 0.2s ease;
    font-family: 'Inter', sans-serif;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.form-group input::placeholder {
    color: #9ca3af;
}

.expiry-cvv-group {
    display: flex;
    gap: 16px;
}

.expiry-cvv-group .form-group {
    flex: 1;
}

.pay-btn {
    width: 100%;
    padding: 14px;
    background-color: var(--primary-color);
    color: white;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    margin-top: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.pay-btn:hover {
    background-color: var(--primary-hover);
}

.pay-btn:active {
    transform: translateY(1px);
}

.secure-badge {
    margin-top: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 500;
}

.secure-badge svg {
    color: #10b981; /* Emerald 500 */
}

/* Result Pages */
.result-icon {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.result-icon svg {
    width: 64px;
    height: 64px;
}

.result-icon.success svg {
    color: #10b981;
}

.result-icon.error svg {
    color: #ef4444;
}

.result-message {
    text-align: center;
    margin-bottom: 24px;
}

.result-message h2 {
    font-size: 22px;
    margin-bottom: 8px;
}

.result-message p {
    color: var(--text-muted);
    font-size: 15px;
    line-height: 1.5;
}

.result-details {
    background: #f8fafc;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 24px;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 14px;
}

.detail-row:last-child {
    margin-bottom: 0;
}

.detail-row span:first-child {
    color: var(--text-muted);
}

.detail-row span:last-child {
    font-weight: 600;
    color: var(--text-main);
}

.action-btn {
    display: block;
    width: 100%;
    padding: 12px;
    text-align: center;
    color: var(--primary-color);
    background: transparent;
    border: 1px solid var(--primary-color);
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.2s ease;
}

.action-btn:hover {
    background: #eef2ff;
}
