/* General Body & Card */
body { 
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; 
    background: #f4f4f4; 
    display: flex; 
    justify-content: center; 
    align-items: center; 
    height: 100vh; 
    margin: 0; 
}

.card { 
    background: white; 
    padding: 30px; 
    border-radius: 12px; 
    box-shadow: 0 4px 15px rgba(0,0,0,0.1); 
    width: 100%; 
    max-width: 400px; 
    text-align: center;
}

.card.wide-padding {
    padding: 40px;
}

/* Typography */
h1 { 
    color: #333; 
    margin-bottom: 30px; 
}

h2 { 
    text-align: center; 
    color: #333; 
    margin-top: 0; 
}

/* Buttons */
.btn { 
    display: block; 
    width: 100%; 
    padding: 15px; 
    margin: 10px 0; 
    background: #fa591d; 
    color: white; 
    text-decoration: none; 
    border-radius: 8px; 
    font-size: 18px; 
    font-weight: bold; 
    transition: background 0.3s; 
    box-sizing: border-box; 
    border: none;
    cursor: pointer;
}

.btn:hover { 
    background: #d64206; 
}

.btn-secondary { 
    background: #0056b3; 
}

.btn-secondary:hover { 
    background: #004494; 
}

.btn-small-padding {
    padding: 14px;
    font-size: 16px;
}

/* Forms & Inputs */
.form-group { 
    margin-bottom: 20px; 
    text-align: left;
}

label { 
    display: block; 
    margin-bottom: 8px; 
    font-weight: 500; 
    color: #333; 
}

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

/* Page-specific focus colors */
.page-pembiayaan input:focus { 
    border-color: #0056b3; 
    outline: none; 
}

.page-simpanan input:focus {
    border-color: #fa591d;
    outline: none;
}

/* Info Display */
.info-group { 
    margin-bottom: 20px; 
    background: #eef2f5; 
    padding: 15px; 
    border-radius: 8px; 
    text-align: left;
}

.info-label { 
    font-size: 12px; 
    color: #666; 
    text-transform: uppercase; 
    letter-spacing: 1px; 
}

.info-value { 
    font-size: 16px; 
    font-weight: 600; 
    color: #333; 
    margin-top: 5px; 
}

/* Links */
.back-link { 
    display: block; 
    text-align: center; 
    margin-top: 15px; 
    color: #666; 
    text-decoration: none; 
}

/* Logo & Footer */
.logo { 
    max-width: 150px; 
    display: block; 
    margin: 0 auto 20px auto; 
}

.logo-small {
    max-width: 120px;
    margin-bottom: 15px;
}

.footer { 
    margin-top: 25px; 
    font-size: 12px; 
    color: #aaa; 
    text-align: center; 
}

.footer img { 
    height: 16px; 
    vertical-align: middle; 
    margin-left: 5px; 
    opacity: 0.8; 
}

/* Bank Selection Modal Grid */
.bank-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-top: 10px;
}

.bank-option-card {
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 12px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: all 0.2s ease;
    background: #fff;
}

.bank-option-card:hover, .bank-option-card.selected {
    border-color: #fa591d;
    background-color: #fff5f0;
}

.bank-option-card img,
.bank-card img {
    height: 30px !important;
    max-height: 30px !important;
    width: auto !important;
    max-width: 100%;
    object-fit: contain;
    margin-bottom: 8px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

/* Spinner Animation */
.spinner {
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 3px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
    vertical-align: middle;
    margin-right: 8px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}