/* Texas Payment Portal - Texas Theme */

/* CSS Variables */
:root {
    --texas-blue: #003f7f;
    --texas-red: #bf0a30;
    --texas-gold: #d4af37;
    --white: #ffffff;
    --secondary-color: #f8f9fa;
    --text-primary: #2c3e50;
    --text-secondary: #6c757d;
    --border-color: #dee2e6;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--secondary-color);
    color: var(--text-primary);
    line-height: 1.6;
}

/* Footer logos section */
.footer-logos {
    background: var(--white);
    padding: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border-color);
    margin-top: 3rem;
}

.state-seal img {
    height: 80px;
}

.govt-portal-logo {
    text-align: right;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.govt-portal-logo img {
    max-height: 80px;
    width: auto;
}

.govt-text {
    font-size: 2rem;
    font-weight: bold;
    color: var(--texas-gold);
    font-style: italic;
}

.subtitle {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-top: -5px;
}

.powered-by {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-top: 2px;
}

/* Main header with Texas theme */
.main-header {
    background: linear-gradient(135deg, var(--texas-blue) 0%, #002a5c 100%);
    color: var(--white);
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    margin: 2rem auto;
    max-width: 1000px;
    overflow: hidden;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 2rem 2rem 1rem;
}

.state-icon img {
    height: 60px;
    border-radius: 8px;
    border: 2px solid rgba(255,255,255,0.3);
}

.header-text {
    flex: 1;
    text-align: center;
    margin: 0 2rem;
}

.header-text h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    letter-spacing: -0.5px;
    line-height: 1.2;
}

.tagline {
    font-size: 16px;
    opacity: 0.9;
    font-weight: 300;
    letter-spacing: 0.5px;
}

.govt-badge {
    text-align: right;
}

.govt-badge-text .govt-text {
    font-size: 1.5rem;
    color: rgba(255,255,255,0.95);
    font-weight: bold;
    font-style: italic;
}

.badge-subtitle, .badge-powered {
    font-size: 0.8rem;
    opacity: 0.8;
}

/* Security badges */
.security-badges {
    display: flex;
    justify-content: center;
    gap: 3rem;
    padding: 1rem 2rem;
}

.badge-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    font-weight: 500;
}

.badge-icon {
    font-size: 1.2rem;
    display: inline-flex;
    align-items: center;
    color: #28a745;
}

.badge-icon svg {
    width: 16px;
    height: 16px;
    color: inherit;
}

/* Start payment section */
.start-payment-section {
    text-align: center;
    padding: 1rem;
}

.start-payment-section h2 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 0.8rem;
}

.start-payment-section p {
    font-size: 16px;
    opacity: 0.9;
}

/* Main form section */
main {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 10;
}

.form-container {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    overflow: hidden;
    margin: 2rem auto;
}

/* Messages */
#messages {
    margin: 1.5rem;
    margin-bottom: 0;
}

.success-message {
    background: #d4edda;
    color: #155724;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    text-align: center;
    border-left: 4px solid #28a745;
    font-weight: 500;
}

.error-message {
    background: #f8d7da;
    color: #721c24;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    text-align: center;
    border-left: 4px solid #dc3545;
    font-weight: 500;
}

.loading-message {
    background: #e3f2fd;
    color: #1565c0;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    text-align: center;
    border-left: 4px solid #2196f3;
    font-weight: 500;
}

/* Step sections */
.step-section {
    padding: 20px 2.5rem;
    border-bottom: 1px solid #f0f2f5;
}

.step-section:last-of-type {
    border-bottom: none;
}

.step-indicator {
    display: flex;
    align-items: center;
    margin-bottom: 2rem;
    font-weight: 600;
    color: var(--texas-blue);
    font-size: 1.15rem;
}

.step-number {
    background: var(--texas-blue);
    color: var(--white);
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    margin-right: 1rem;
    font-weight: bold;
}

/* Form elements */
.form-group {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    color: #333;
    font-weight: 600;
    font-size: 0.95rem;
}

select, input[type="text"], input[type="email"], input[type="tel"] {
    width: 100%;
    padding: 1rem 1.2rem;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 1rem;
    background: #fff;
    color: #333;
    transition: all 0.3s ease;
}

select:focus, input:focus {
    border-color: var(--texas-blue);
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 63, 127, 0.1);
    background: #fafbff;
}

/* Payment type cards */
.payment-types {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.2rem;
    margin-bottom: 2.5rem;
}

.payment-card {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    padding: 1.8rem 1.2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    min-height: 120px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.payment-card:hover {
    border-color: var(--texas-blue);
    background: #f0f7ff;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 63, 127, 0.15);
}

.payment-card.selected {
    border-color: var(--texas-blue);
    background: #e3f2fd;
    box-shadow: 0 4px 15px rgba(0, 63, 127, 0.2);
}

.payment-card.disabled {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
}

.payment-card.disabled:hover {
    transform: none;
    box-shadow: none;
    border-color: #e9ecef;
    background: #f8f9fa;
}

.payment-icon {
    font-size: 2.2rem;
    margin-bottom: 0.8rem;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--texas-blue);
}

.payment-icon svg {
    width: 32px;
    height: 32px;
    color: inherit;
}

.payment-title {
    font-weight: 600;
    color: #333;
    margin-bottom: 0.4rem;
    font-size: 1.05rem;
}

.payment-desc {
    font-size: 0.88rem;
    color: #666;
    line-height: 1.4;
}

/* Form security badges */
.form-security-badges {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    padding: 1rem 0;
    margin-top: 1rem;
    border-top: 1px solid #f0f2f5;
}

.form-security-badges .security-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: #666;
    font-weight: 500;
}

.form-security-badges .security-icon {
    color: #28a745;
    font-size: 1rem;
}

.continue-btn {
    width: 80%;
    background: linear-gradient(135deg, var(--texas-blue) 0%, #002a5c 100%);
    color: var(--white);
    border: none;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    margin: 1rem 6rem;
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.continue-btn svg {
    margin-right: 8px;
}

.continue-btn:hover {
    background: linear-gradient(135deg, #002a5c 0%, var(--texas-gold) 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 63, 127, 0.4);
}

.continue-btn:disabled {
    background: #e0e0e0;
    color: #9e9e9e;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Bottom security badges */
.bottom-security {
    display: flex;
    justify-content: center;
    gap: 2rem;
    padding: 1.5rem 2rem 2rem;
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
}

.security-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: #666;
    font-weight: 500;
}

.security-icon {
    color: #28a745;
    display: inline-flex;
    align-items: center;
}

.security-icon svg {
    width: 14px;
    height: 14px;
    color: inherit;
}

/* Not serviced form */
#notServicedForm {
    padding: 2rem;
    border-top: 2px solid #f0f2f5;
    background: #fafbfc;
}

#notServicedForm h3 {
    color: var(--texas-blue);
    margin-bottom: 1rem;
    text-align: center;
    font-size: 1.3rem;
    font-weight: 600;
}

#notServicedForm p {
    color: #666;
    text-align: center;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.back-btn {
    background: linear-gradient(135deg, #6c757d 0%, #868e96 100%);
    margin-top: 1rem;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    transition: all 0.3s ease;
}

.back-btn:hover {
    background: linear-gradient(135deg, #5a6268 0%, #6c757d 100%);
}

/* Success page */
.success-page {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    margin: 2rem 0;
}

.success-content {
    text-align: center;
    padding: 3rem 2rem;
}

.success-content h1 {
    color: #28a745;
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
    font-weight: 600;
}

.success-content p {
    color: #666;
    line-height: 1.8;
    margin-bottom: 1rem;
    font-size: 1.05rem;
}

.success-security {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin: 2rem 0;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #28a745;
}

/* Responsive design */
@media (max-width: 768px) {
    .footer-logos {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
        padding: 1.5rem;
    }
    
    .govt-portal-logo {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .header-content {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }
    
    .header-text {
        margin: 0;
    }
    
    .header-text h1 {
        font-size: 2.5rem;
    }
    
    .security-badges {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }
    
    .payment-types {
        grid-template-columns: 1fr;
    }
    
    .bottom-security {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }
    
    .success-security {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }
    
    .form-security-badges {
        flex-direction: column;
        gap: 0.5rem;
        align-items: center;
    }
    
    main {
        padding: 0 1rem;
    }
    
    .step-section {
        padding: 1.5rem;
    }
    
    .main-header {
        margin: 1rem auto;
    }
}

@media (max-width: 480px) {
    .govt-text {
        font-size: 1.5rem;
    }
    
    .header-text h1 {
        font-size: 1.8rem;
    }
    
    .tagline {
        font-size: 1rem;
    }
    
    .start-payment-section h2 {
        font-size: 1.5rem;
    }
    
    .payment-card {
        padding: 1rem;
    }
    
    .continue-btn {
        margin: 1rem;
    }
}

/* Form validation styles */
.form-group.has-error input,
.form-group.has-error select {
    border-color: #dc3545;
    background-color: #fff5f5;
}

.form-group.has-success input,
.form-group.has-success select {
    border-color: #28a745;
    background-color: #f8fff8;
}

/* Animation */
.form-container {
    animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}