/*
Theme Name: GeneratePress Child - Credit Card Landing
Theme URI: https://generatepress.com
Description: Dedicated child theme for a high-converting credit card landing page
Author: Shailesh
Author URI: https://generatepress.com
Template: generatepress
Version: 1.0.0
*/

/* Reset & Foundation */
.cc-landing-page {
    font-family: 'Inter', 'Roboto', sans-serif;
    color: #333;
    line-height: 1.6;
}

/* Hero Section */
.cc-hero {
    background: linear-gradient(135deg, #0d47a1 0%, #1976d2 100%);
    color: #fff;
    padding: 60px 20px;
    text-align: center;
}
.cc-hero-inner h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    color: #fff;
}
.cc-hero-inner p {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto;
    opacity: 0.9;
}

/* Container & Layout */
.cc-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.cc-grid {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

/* On mobile: form is visually first */
.cc-sidebar-area {
    order: -1; 
}
.cc-content-area {
    order: 1;
}

/* Desktop layout overrides */
@media (min-width: 992px) {
    .cc-grid {
        display: grid;
        grid-template-columns: 2fr 1fr;
        align-items: start;
    }
    .cc-sidebar-area {
        order: 2; /* Form on the right */
        position: sticky;
        top: 40px;
    }
    .cc-content-area {
        order: 1; /* Content on the left */
    }
}

/* Bank Cards */
.cc-bank-card {
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    border: 1px solid #eee;
}
.cc-bank-card h2 {
    color: #0d47a1;
    font-size: 1.8rem;
    margin-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 10px;
}
.top-3-bank {
    border: 2px solid #ffd700;
    background: #fffdf5;
}

/* Tables */
.cc-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}
.cc-table th, .cc-table td {
    padding: 12px 15px;
    border: 1px solid #e0e0e0;
    text-align: left;
}
.cc-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #0d47a1;
}
.cc-summary-table th {
    background: #0d47a1;
    color: #fff;
}

/* Form Styles */
.cc-form-box {
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    border-top: 5px solid #ff6d00;
}
.cc-form-box h3 {
    text-align: center;
    color: #0d47a1;
    font-size: 1.5rem;
    margin-bottom: 5px;
}
.cc-form-subtitle {
    text-align: center;
    color: #d32f2f;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 20px;
}
.form-group {
    margin-bottom: 20px;
}
.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #444;
}
.form-group input, 
.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 1rem;
    transition: all 0.3s;
    box-sizing: border-box;
}
.form-group input:focus, 
.form-group select:focus {
    border-color: #0d47a1;
    box-shadow: 0 0 0 3px rgba(13, 71, 161, 0.1);
    outline: none;
}
.cc-submit-btn {
    width: 100%;
    background: #ff6d00;
    color: #fff;
    border: none;
    padding: 15px;
    border-radius: 6px;
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}
.cc-submit-btn:hover {
    background: #e65c00;
    transform: translateY(-2px);
}
.cc-submit-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}
.cc-form-trust {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 15px;
    font-size: 0.85rem;
    color: #666;
}

/* Loading Spinner */
.btn-spinner {
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}
@keyframes spin {
    to { transform: rotate(360deg); }
}

.cc-form-status {
    margin-top: 20px;
    padding: 15px;
    border-radius: 6px;
    text-align: center;
    font-weight: 600;
}
.cc-form-status.loading {
    background: #e3f2fd;
    color: #0d47a1;
    border: 1px solid #bbdefb;
}
.cc-form-status.success {
    background: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #c8e6c9;
}
