/* ROOT VARIABLES FOR CONSISTENT BRANDING */
:root {
    --primary: #731b68;    /* Deep Academic Green */
    --secondary: #fbb03b;  /* Golden Accent */
    --dark: #333333;
    --light: #f4f7f6;
    --white: #ffffff;
    --border: #dddddd;
    --shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

/* RESET & BASE STYLES */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: var(--light);
    color: var(--dark);
    line-height: 1.6;
}

/* HEADER & SCHOOL BRANDING */
header {
    background: var(--white);
    padding: 1rem 8%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.brand {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-placeholder {
    width: 60px;
    height: 60px;
    background: #eee;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: bold;
    border: 2px solid var(--primary);
    text-align: center;
}

.school-name h1 {
    font-size: 1.2rem;
    color: var(--primary);
    margin: 0;
}

.school-name p {
    font-size: 0.8rem;
    color: #666;
    margin: 0;
    font-weight: 600;
}

nav a {
    text-decoration: none;
    color: var(--primary);
    font-weight: bold;
    font-size: 0.9rem;
    padding: 8px 15px;
    border: 1px solid var(--primary);
    border-radius: 4px;
    transition: 0.3s;
}

nav a:hover {
    background: var(--primary);
    color: var(--white);
}

/* LAYOUT CONTAINER */
.container {
    max-width: 600px;
    margin: 2.5rem auto;
    padding: 2rem;
    background: var(--white);
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.form-header {
    text-align: center;
    margin-bottom: 2rem;
}

.divider {
    width: 50px;
    height: 3px;
    background: var(--secondary);
    margin: 10px auto;
}

/* FORM ELEMENTS */
.form-group {
    margin-bottom: 1.2rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #555;
}

input, select {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 5px;
    font-size: 1rem;
    outline: none;
}

input:focus, select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(0, 104, 55, 0.1);
}

/* BUTTONS */
.btn {
    display: inline-block;
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: bold;
    text-align: center;
    text-decoration: none;
    transition: 0.3s;
}

.btn-pay {
    background: var(--primary);
    color: white;
}

.btn-pay:hover {
    background: #004d29;
}

/* PAYMENT PAGE SPECIFIC */
.account-card {
    background: #fffbef;
    border: 1px dashed var(--secondary);
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
    margin: 1.5rem 0;
}

.account-number {
    font-size: 1.8rem;
    color: var(--primary);
    font-weight: bold;
    margin: 10px 0;
}

.loader {
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--primary);
    border-radius: 50%;
    width: 30px;
    height: 30px;
    animation: spin 1s linear infinite;
    margin: 15px auto;
}

@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

/* RECEIPT BOX STYLES */
.receipt-box {
    border: 1px solid #eee;
    padding: 30px;
    position: relative;
    background: #fff;
}

.receipt-header {
    text-align: center;
    margin-bottom: 25px;
    border-bottom: 2px solid var(--primary);
    padding-bottom: 15px;
}

.receipt-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    border-bottom: 1px dashed #eee;
    padding-bottom: 5px;
}

.paid-stamp {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-20deg);
    color: rgba(0, 104, 55, 0.08);
    font-size: 6rem;
    font-weight: bold;
    border: 10px solid rgba(0, 104, 55, 0.08);
    padding: 10px 30px;
    pointer-events: none;
    z-index: 0;
}

/* PRINTING CONTROLS */
@media print {
    .no-print { display: none !important; }
    body { background: white; }
    .container { box-shadow: none; margin: 0; max-width: 100%; }
    header { display: none; }
}

/* MOBILE RESPONSIVENESS */
@media (max-width: 600px) {
    header { flex-direction: column; text-align: center; gap: 15px; }
    .container { margin: 1rem; padding: 1.5rem; }
}