:root {
    --primary-dark: #003049;
    --app-bg: #f8f9fb;
    --border-color: #e2e8f0;
}

.app-container {
    max-width: 1100px;
    margin: 60px auto;
    padding: 0 20px;
    font-family: 'Inter', sans-serif;
}

.app-header h1 {
    font-size: 2.8rem;
    font-weight: 900;
    color: var(--primary-dark);
    letter-spacing: -1.5px;
    margin-bottom: 8px;
}

.status-pill {
    display: inline-block;
    padding: 4px 12px;
    background: #e6fffa;
    color: #059669;
    border-radius: 100px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 15px;
}

.grid-label {
    font-size: 13px;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 40px 0 20px;
}

/* The Service Tiles */
.selection-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 12px;
}

.service-tile {
    cursor: pointer;
    display: block;
}

.tile-content {
    background: #fff;
    border: 1.5px solid var(--border-color);
    padding: 22px;
    border-radius: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.tile-text {
    font-size: 15px;
    font-weight: 600;
    color: #334155;
    max-width: 85%;
}

.tile-marker {
    width: 20px;
    height: 20px;
    border: 2px solid #cbd5e1;
    border-radius: 6px;
    transition: 0.2s;
}

/* Active Selection State */
.tile-input { display: none; }

.tile-input:checked + .tile-content {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 48, 73, 0.15);
}

.tile-input:checked + .tile-content .tile-text {
    color: #fff;
}

.tile-input:checked + .tile-content .tile-marker {
    background: #fff;
    border-color: #fff;
    position: relative;
}

.tile-input:checked + .tile-content .tile-marker::after {
    content: '✓';
    position: absolute;
    color: var(--primary-dark);
    font-size: 12px;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    font-weight: 900;
}

/* Requester Section */
.requester-section {
    margin-top: 50px;
    background: #fff;
    padding: 40px;
    border-radius: 24px;
    border: 1px solid var(--border-color);
}

.app-input-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.requester-section input, .requester-section textarea {
    width: 100%;
    padding: 16px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    background: var(--app-bg);
    font-size: 15px;
    outline: none;
    transition: 0.2s;
}

.requester-section input:focus {
    border-color: var(--primary-dark);
    background: #fff;
}

.app-submit-btn {
    width: 100%;
    background: var(--primary-dark);
    color: #fff;
    padding: 22px;
    border-radius: 16px;
    font-size: 17px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    margin-top: 20px;
    transition: 0.3s;
}

.app-submit-btn:hover {
    background: #004569;
    letter-spacing: 0.5px;
}





















.pagination-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 30px;
}

.nav-controls {
    display: flex;
    gap: 10px;
}

.nav-btn {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    border: 1.5px solid var(--border-color);
    background: #fff;
    color: var(--primary-dark);
    cursor: pointer;
    transition: 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-btn:hover:not(:disabled) {
    background: var(--primary-dark);
    color: #fff;
    border-color: var(--primary-dark);
}

.nav-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

/* Animations */
.fade-in {
    transition: opacity 0.3s ease;
}

.slide-up {
    animation: slideUp 0.4s ease forwards;
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Keep Tile Selection color #003049 */
.tile-input:checked + .tile-content {
    background: #003049 !important;
    border-color: #003049 !important;
}




/* Bottom Pagination Bar */
.pagination-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fff;
    padding: 20px;
    margin-top: 15px;
    border-radius: 16px;
    border: 1.5px solid var(--border-color);
}

.range-text {
    font-size: 14px;
    font-weight: 600;
    color: #64748b;
}

.nav-controls {
    display: flex;
    gap: 12px;
}

.nav-btn {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    border: none;
    background: #f1f5f9;
    color: var(--primary-dark); /* #003049 */
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-btn:hover:not(:disabled) {
    background: var(--primary-dark);
    color: #fff;
    transform: scale(1.05);
}

.nav-btn:active:not(:disabled) {
    transform: scale(0.95);
}

.nav-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* Staggered Entrance Animation */
.anim-item {
    opacity: 0;
    animation: springIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes springIn {
    from { 
        opacity: 0; 
        transform: translateY(20px) scale(0.9); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0) scale(1); 
    }
}












.input-wrapper {
    position: relative;
    width: 100%;
}

.error-msg {
    position: absolute;
    bottom: -18px;
    left: 5px;
    font-size: 11px;
    font-weight: 600;
    color: #ff4d4d;
    opacity: 0;
    transition: 0.3s;
    pointer-events: none;
}

.error-banner {
    background: #fff5f5;
    color: #cc0000;
    padding: 12px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 700;
    text-align: center;
    margin: 20px 0;
    border: 1px solid #ffcccc;
    display: none;
}

/* Intelligent Shake Animation */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

.shake {
    animation: shake 0.2s ease-in-out 0s 2;
}

/* Active field indicator using #003049 */
input:focus, select:focus {
    border-color: #003049 !important;
    box-shadow: 0 0 0 4px rgba(0, 48, 73, 0.05);
}























.review-box {
    background: #f8fafc;
    border: 1.5px solid #eef2f6;
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 30px;
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #eef2f6;
    padding-bottom: 10px;
    margin-bottom: 15px;
}

.review-title {
    font-weight: 800;
    color: #003049;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 1px;
}

.count-pill {
    background: #666;
    color: #fff;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
}

.review-items {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    min-height: 40px;
}

.tag {
    background: #fff;
    border: 1px solid #00304920;
    color: #003049;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
}

.review-footer {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px dashed #cbd5e1;
    display: flex;
    gap: 20px;
}

.meta-item {
    font-size: 12px;
    font-weight: 700;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 8px;
}

.meta-item i { color: #003049; }
















/* Shake animation for blocked submission */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-8px); }
    75% { transform: translateX(8px); }
}
.shake { animation: shake 0.3s ease-in-out; }

/* Error Styling */
.input-group.invalid input, 
.input-group.invalid select {
    border-color: #ff4d4d !important;
    background-color: #fff5f5 !important;
}

.val-msg {
    display: none;
    font-size: 11px;
    font-weight: 700;
    color: #ff4d4d;
    margin-top: 4px;
    padding-left: 5px;
}

.input-group.invalid .val-msg {
    display: block;
}













.app-submit-btn {
    transition: all 0.3s ease;
    cursor: pointer;
}

.app-submit-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    filter: grayscale(0.5);
}













.app-input-full {
    width: 100%;
    margin-top: 15px;
}

.app-input-full textarea {
    width: 100%;
    padding: 15px;
    border-radius: 12px;
    border: 1px solid #e0e0e0;
    background: #fdfdfd;
    font-family: 'Inter', sans-serif;
    resize: vertical;
    outline: none;
    transition: border-color 0.3s ease;
}

.app-input-full textarea:focus {
    border-color: #006666; /* Your teal brand color */
}

/* Adjust the input row for 3 columns on desktop */
@media (min-width: 768px) {
    .app-input-row {
        display: grid;
        grid-template-columns: 1fr 1fr 1fr;
        gap: 15px;
    }
}



















.receipt-card {
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    max-width: 500px;
    margin: 40px auto;
    overflow: hidden;
    border: 1px solid #f0f0f0;
}

.receipt-header {
    background: #006666; /* Your Teal Brand Color */
    color: white;
    padding: 30px;
    text-align: center;
}

.check-icon { font-size: 3rem; margin-bottom: 10px; }

.receipt-body { padding: 30px; }

.receipt-section { margin-bottom: 20px; border-bottom: 1px solid #f5f5f5; padding-bottom: 15px; }

.label { display: block; font-size: 0.75rem; color: #888; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 5px; }

.value { display: block; font-size: 1.1rem; font-weight: 600; color: #333; }

.sub-value { display: block; font-size: 0.9rem; color: #666; }

.service-list { list-style: none; padding: 0; margin-top: 10px; }
.service-list li { font-size: 0.9rem; color: #444; margin-bottom: 5px; }
.service-list i { color: #006666; margin-right: 8px; }

.note-box { background: #f9f9f9; padding: 15px; border-radius: 10px; font-size: 0.9rem; color: #555; border-left: 4px solid #006666; }

.receipt-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 20px; }











/* Fintech Theme Footer Container */
.app-footer.fintech-theme {
    background: #000000; /* True black background like the example */
    color: #ffffff;
    padding: 80px 0 40px;
    margin-top: 50px;
    border-top: 1px solid #1a1a1a; /* Very subtle top border */
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 5-Column Grid Layout */
.footer-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr); /* 5 equal columns like the example */
    gap: 30px;
    margin-bottom: 60px;
}

/* Column Headings (White like example) */
.footer-col h4 {
    color: #ffffff;
    font-size: 1rem;
    margin-bottom: 25px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Link Lists */
.footer-col ul {
    list-style: none;
    padding: 0;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a {
    text-decoration: none;
    color: #999; /* Greyed out links like example, high-contrast on black */
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.footer-col ul li a:hover {
    color: #006666; /* Your signature Teal accent on hover */
}

/* Logo (Fintech look) */
.footer-logo {
    font-size: 1.8rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 15px;
}

.footer-logo span {
    color: #006666; /* Teal accent point */
}

/* Contact Details in Fintech Theme */
.footer-col.contact-col p {
    color: #999;
    font-size: 0.95rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-col.contact-col .mail-link {
    color: #006666; /* Specific color for email, like the example */
}

/* Fintech-Style Social Icons (Clean, dark boxes) */
.social-links-fintech {
    display: flex;
    gap: 12px;
    margin-top: 25px;
}

.social-links-fintech a {
    width: 42px;
    height: 42px;
    border-radius: 8px;
    background: #111; /* Very dark box */
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid #222; /* Subtle border */
}

.social-links-fintech a:hover {
    background: #006666; /* Teal fill on hover */
    border-color: #006666;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 102, 102, 0.4);
}

/* Bottom Disclosure Section (Fintech look) */
.footer-bottom-fintech {
    padding-top: 40px;
    border-top: 1px solid #1a1a1a;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 40px;
}

.footer-brand-info {
    max-width: 100%; /* Spans the full width like example's bottom area */
}

.disclaimer-text {
    color: #555; /* Low-contrast grey for legal disclaimer like example */
    font-size: 0.85rem;
    line-height: 1.6;
    margin-top: 20px;
}

/* Responsive Overrides for Fintech Theme */
@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .footer-col.contact-col p,
    .footer-col.contact-col .social-links-fintech {
        justify-content: center;
    }
}