/**
 * FixPayment Collections Portal - Main Stylesheet
 * Professional, urgent, and legally compliant design
 * Color Scheme: Dark grays, urgent reds, accent gold
 */

/* ==================== RESET & BASE STYLES ==================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Colors */
    --primary-dark: #1f2937;
    --primary-darker: #111827;
    --urgent-red: #dc2626;
    --urgent-red-dark: #991b1b;
    --accent-gold: #fbbf24;
    --accent-gold-dark: #f59e0b;
    --bg-light: #f5f5f5;
    --bg-white: #ffffff;
    --text-dark: #1a1a1a;
    --text-gray: #6b7280;
    --border-gray: #d1d5db;
    --success-green: #059669;
    --warning-yellow: #f59e0b;
    
    /* Spacing */
    --container-width: 1200px;
    --section-padding: 60px 20px;
    --card-padding: 30px;
    
    /* Typography */
    --font-primary: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --font-heading: Georgia, 'Times New Roman', serif;
}

body {
    font-family: var(--font-primary);
    color: var(--text-dark);
    background-color: var(--bg-light);
    line-height: 1.6;
    font-size: 16px;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* ==================== TYPOGRAPHY ==================== */

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    line-height: 1.2;
    margin-bottom: 1rem;
    font-weight: 700;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p { margin-bottom: 1rem; }

a {
    color: var(--urgent-red);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--urgent-red-dark);
    text-decoration: underline;
}

/* ==================== URGENT BANNER ==================== */

.urgent-banner {
    background: linear-gradient(135deg, var(--urgent-red) 0%, var(--urgent-red-dark) 100%);
    color: white;
    padding: 15px 20px;
    text-align: center;
    font-weight: 600;
    font-size: 1.1rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    position: sticky;
    top: 0;
    z-index: 1000;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.95; }
}

.urgent-banner i {
    margin-right: 10px;
    font-size: 1.3rem;
    animation: shake 0.5s infinite;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

.urgent-banner .phone-urgent {
    margin-left: 20px;
    border-left: 2px solid rgba(255,255,255,0.5);
    padding-left: 20px;
}

.urgent-banner a {
    color: var(--accent-gold);
    font-weight: 700;
    text-decoration: none;
}

.urgent-banner a:hover {
    color: white;
    text-decoration: underline;
}

/* ==================== HEADER ==================== */

.main-header {
    background: linear-gradient(180deg, var(--primary-darker) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 20px 0 0;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 20px;
    flex-wrap: wrap;
}

.logo h1 {
    font-size: 2rem;
    margin: 0;
    color: var(--accent-gold);
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.logo .tagline {
    font-size: 0.9rem;
    color: #9ca3af;
    margin: 0;
}

.header-contact {
    display: flex;
    gap: 30px;
    align-items: center;
}

.phone-main {
    display: flex;
    align-items: center;
    gap: 15px;
    background: rgba(255,255,255,0.1);
    padding: 15px 25px;
    border-radius: 8px;
    border: 2px solid var(--accent-gold);
}

.phone-main i {
    font-size: 2rem;
    color: var(--accent-gold);
}

.phone-main small {
    display: block;
    font-size: 0.8rem;
    color: #d1d5db;
}

.phone-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: white !important;
    text-decoration: none !important;
}

.business-hours {
    display: flex;
    align-items: center;
    gap: 10px;
}

.business-hours i {
    font-size: 1.5rem;
    color: var(--accent-gold);
}

.business-hours small {
    font-size: 0.85rem;
    line-height: 1.4;
}

/* ==================== NAVIGATION ==================== */

.main-nav {
    background: var(--primary-darker);
    position: relative;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    padding: 15px;
    cursor: pointer;
}

.nav-menu {
    list-style: none;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin: 0;
    padding: 0;
}

.nav-menu li {
    position: relative;
}

.nav-menu a {
    display: block;
    padding: 15px 20px;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
}

.nav-menu a:hover,
.nav-menu a.active {
    background: rgba(255,255,255,0.1);
    border-bottom-color: var(--accent-gold);
}

.nav-menu i {
    margin-right: 5px;
}

/* ==================== LEGAL DISCLOSURE ==================== */

.legal-disclosure {
    background: #fef3c7;
    border-bottom: 3px solid var(--warning-yellow);
    padding: 12px 20px;
    font-size: 0.9rem;
    color: #92400e;
}

.legal-disclosure i {
    margin-right: 8px;
    color: var(--warning-yellow);
}

/* ==================== FLASH MESSAGES ==================== */

.flash-message {
    padding: 15px 20px;
    margin: 20px 0;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from { transform: translateY(-20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.flash-success {
    background: #d1fae5;
    border-left: 5px solid var(--success-green);
    color: #065f46;
}

.flash-error {
    background: #fee2e2;
    border-left: 5px solid var(--urgent-red);
    color: #991b1b;
}

.flash-info {
    background: #dbeafe;
    border-left: 5px solid #2563eb;
    color: #1e40af;
}

.flash-message i {
    margin-right: 10px;
    font-size: 1.2rem;
}

.close-flash {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.3s;
}

.close-flash:hover {
    opacity: 1;
}

/* ==================== MAIN CONTENT ==================== */

.main-content {
    min-height: calc(100vh - 400px);
    padding: 40px 0;
}

/* ==================== HERO SECTION ==================== */

.hero-section {
    background: linear-gradient(135deg, var(--urgent-red) 0%, var(--urgent-red-dark) 100%);
    color: white;
    padding: 60px 20px;
    text-align: center;
    margin-bottom: 40px;
    border-bottom: 5px solid var(--accent-gold);
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.hero-section h1 {
    font-size: 3rem;
    margin-bottom: 15px;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.3);
}

.hero-section .delinquency-label {
    background: var(--accent-gold);
    color: var(--primary-darker);
    padding: 10px 25px;
    border-radius: 50px;
    display: inline-block;
    font-weight: 700;
    font-size: 1.2rem;
    margin: 20px 0;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.hero-section p {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 20px auto;
    line-height: 1.8;
}

/* ==================== CARDS & BOXES ==================== */

.card {
    background: white;
    border-radius: 10px;
    padding: var(--card-padding);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.card-header {
    border-bottom: 3px solid var(--accent-gold);
    padding-bottom: 15px;
    margin-bottom: 20px;
}

.card-header h3 {
    margin: 0;
    color: var(--primary-dark);
}

.warning-box {
    background: #fef3c7;
    border: 3px solid var(--warning-yellow);
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
}

.danger-box {
    background: #fee2e2;
    border: 3px solid var(--urgent-red);
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
}

.info-box {
    background: #dbeafe;
    border: 3px solid #2563eb;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
}

.success-box {
    background: #d1fae5;
    border: 3px solid var(--success-green);
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
}

/* ==================== ACCOUNT STATUS ==================== */

.account-status {
    background: white;
    border-radius: 10px;
    padding: 30px;
    margin: 30px 0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.status-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.status-item {
    text-align: center;
    padding: 20px;
    border-radius: 8px;
    background: var(--bg-light);
}

.status-item i {
    font-size: 2.5rem;
    margin-bottom: 10px;
    color: var(--urgent-red);
}

.status-item .label {
    display: block;
    font-size: 0.9rem;
    color: var(--text-gray);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 5px;
}

.status-item .value {
    display: block;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-dark);
}

.status-item.urgent .value {
    color: var(--urgent-red);
}

/* ==================== BADGES ==================== */

.badge {
    display: inline-block;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-danger {
    background: var(--urgent-red);
    color: white;
}

.badge-warning {
    background: var(--warning-yellow);
    color: var(--primary-darker);
}

.badge-success {
    background: var(--success-green);
    color: white;
}

.badge-secondary {
    background: var(--text-gray);
    color: white;
}

/* ==================== BUTTONS ==================== */

.btn {
    display: inline-block;
    padding: 15px 35px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
    min-width: 200px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--urgent-red) 0%, var(--urgent-red-dark) 100%);
    color: white;
    box-shadow: 0 4px 10px rgba(220, 38, 38, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(220, 38, 38, 0.4);
    text-decoration: none;
}

.btn-secondary {
    background: var(--primary-dark);
    color: white;
}

.btn-secondary:hover {
    background: var(--primary-darker);
}

.btn-success {
    background: var(--success-green);
    color: white;
}

.btn-outline {
    background: white;
    color: var(--urgent-red);
    border: 2px solid var(--urgent-red);
}

.btn-outline:hover {
    background: var(--urgent-red);
    color: white;
}

.btn-large {
    padding: 20px 50px;
    font-size: 1.3rem;
    min-width: 300px;
}

.btn-block {
    display: block;
    width: 100%;
}

/* ==================== GRIDS ==================== */

.grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin: 30px 0;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin: 30px 0;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

/* ==================== CONSEQUENCE SECTION ==================== */

.consequences-list {
    list-style: none;
    padding: 0;
}

.consequences-list li {
    background: white;
    padding: 20px;
    margin-bottom: 15px;
    border-left: 5px solid var(--urgent-red);
    border-radius: 5px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    display: flex;
    align-items: center;
    gap: 15px;
}

.consequences-list li i {
    font-size: 2rem;
    color: var(--urgent-red);
    min-width: 40px;
}

.consequences-list li strong {
    display: block;
    font-size: 1.1rem;
    margin-bottom: 5px;
    color: var(--primary-dark);
}

/* ==================== SITUATION CARDS ==================== */

.situation-card {
    text-align: center;
    padding: 25px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.situation-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.situation-card i {
    font-size: 3rem;
    color: var(--accent-gold);
    margin-bottom: 15px;
}

.situation-card h4 {
    color: var(--primary-dark);
    margin-bottom: 10px;
}

.situation-card p {
    font-size: 0.95rem;
    color: var(--text-gray);
    margin: 0;
}

/* ==================== RESOLUTION OPTIONS ==================== */

.resolution-option {
    background: white;
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border-top: 5px solid var(--accent-gold);
    transition: all 0.3s ease;
}

.resolution-option:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
    border-top-color: var(--urgent-red);
}

.resolution-option i {
    font-size: 3.5rem;
    color: var(--urgent-red);
    margin-bottom: 15px;
}

.resolution-option h3 {
    color: var(--primary-dark);
    margin-bottom: 15px;
}

.resolution-option p {
    color: var(--text-gray);
    margin-bottom: 20px;
}

.resolution-option ul {
    text-align: left;
    margin: 20px 0;
    padding-left: 20px;
}

.resolution-option ul li {
    margin-bottom: 8px;
    color: var(--text-gray);
}

/* ==================== COUNTDOWN TIMER ==================== */

.deadline-countdown {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    padding: 40px 20px;
    text-align: center;
    border-radius: 10px;
    margin: 40px 0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.deadline-countdown h3 {
    color: var(--primary-darker);
    margin-bottom: 20px;
}

.countdown-timer {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.countdown-item {
    background: white;
    padding: 20px 30px;
    border-radius: 10px;
    min-width: 100px;
}

.countdown-item .number {
    display: block;
    font-size: 3rem;
    font-weight: 700;
    color: var(--urgent-red);
    line-height: 1;
}

.countdown-item .label {
    display: block;
    font-size: 0.9rem;
    color: var(--text-gray);
    text-transform: uppercase;
    margin-top: 5px;
}

/* ==================== FORMS ==================== */

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

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

.form-group label.required::after {
    content: " *";
    color: var(--urgent-red);
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--border-gray);
    border-radius: 6px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--urgent-red);
}

.form-control.error {
    border-color: var(--urgent-red);
    background: #fee2e2;
}

.form-error {
    color: var(--urgent-red);
    font-size: 0.875rem;
    margin-top: 5px;
    display: block;
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

select.form-control {
    cursor: pointer;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.form-help {
    font-size: 0.875rem;
    color: var(--text-gray);
    margin-top: 5px;
}

/* ==================== TABLES ==================== */

.table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    border-radius: 8px;
    overflow: hidden;
}

.table thead {
    background: var(--primary-dark);
    color: white;
}

.table th {
    padding: 15px;
    text-align: left;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.875rem;
    letter-spacing: 0.5px;
}

.table td {
    padding: 15px;
    border-bottom: 1px solid var(--border-gray);
}

.table tbody tr:hover {
    background: var(--bg-light);
}

/* ==================== PROGRESS BAR ==================== */

.progress-bar {
    width: 100%;
    height: 30px;
    background: var(--border-gray);
    border-radius: 15px;
    overflow: hidden;
    position: relative;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--success-green) 0%, #34d399 100%);
    border-radius: 15px;
    transition: width 0.5s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 0.875rem;
}

/* ==================== FOOTER ==================== */

.main-footer {
    background: var(--primary-darker);
    color: white;
    padding: 50px 20px 20px;
    margin-top: 60px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    color: var(--accent-gold);
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.footer-section p,
.footer-section li {
    font-size: 0.95rem;
    line-height: 1.8;
    color: #d1d5db;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section a {
    color: #d1d5db;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: var(--accent-gold);
}

.footer-section i {
    margin-right: 8px;
    color: var(--accent-gold);
}

.footer-disclaimers {
    background: rgba(0,0,0,0.2);
    padding: 30px;
    border-radius: 8px;
    margin-bottom: 30px;
}

.footer-disclaimers p {
    margin-bottom: 15px;
}

.footer-disclaimers ul {
    list-style: disc;
    padding-left: 20px;
}

.footer-disclaimers li {
    margin-bottom: 8px;
    font-size: 0.875rem;
    line-height: 1.6;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.footer-bottom p {
    font-size: 0.9rem;
    color: #9ca3af;
    margin-bottom: 10px;
}

.mini-miranda {
    font-size: 0.8rem;
    font-style: italic;
}

/* ==================== RESPONSIVE DESIGN ==================== */

@media (max-width: 768px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.5rem; }
    
    .header-content {
        flex-direction: column;
        text-align: center;
    }
    
    .header-contact {
        flex-direction: column;
        gap: 15px;
        width: 100%;
    }
    
    .phone-main {
        width: 100%;
        justify-content: center;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .nav-menu {
        flex-direction: column;
        display: none;
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .nav-menu a {
        text-align: center;
    }
    
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .hero-section .delinquency-label {
        font-size: 1rem;
        padding: 8px 20px;
    }
    
    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }
    
    .countdown-timer {
        gap: 10px;
    }
    
    .countdown-item {
        min-width: 80px;
        padding: 15px 20px;
    }
    
    .countdown-item .number {
        font-size: 2rem;
    }
    
    .btn-large {
        padding: 15px 30px;
        font-size: 1.1rem;
        min-width: auto;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

@media (max-width: 480px) {
    .urgent-banner {
        font-size: 0.95rem;
        padding: 12px 15px;
    }
    
    .urgent-banner .phone-urgent {
        display: block;
        margin-left: 0;
        margin-top: 10px;
        border-left: none;
        padding-left: 0;
        border-top: 1px solid rgba(255,255,255,0.5);
        padding-top: 10px;
    }
    
    .phone-number {
        font-size: 1.2rem;
    }
    
    .status-item .value {
        font-size: 1.5rem;
    }
    
    .table {
        font-size: 0.875rem;
    }
    
    .table th,
    .table td {
        padding: 10px;
    }
}

/* ==================== PRINT STYLES ==================== */

@media print {
    .urgent-banner,
    .main-header,
    .main-nav,
    .main-footer,
    .flash-message {
        display: none;
    }
    
    body {
        background: white;
    }
    
    .card {
        box-shadow: none;
        border: 1px solid #ddd;
    }
}

/* ==================== ACCESSIBILITY ==================== */

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

:focus {
    outline: 2px solid var(--accent-gold);
    outline-offset: 2px;
}

button:focus,
a:focus {
    outline: 2px solid var(--accent-gold);
    outline-offset: 2px;
}

/* ==================== LOADING SPINNER ==================== */

.spinner {
    border: 4px solid var(--border-gray);
    border-top: 4px solid var(--urgent-red);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 20px auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

