/* ============================================
   CREDIT PAGE STYLES
   ============================================ */

/* Credit Hero Section */
.credit-hero {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.credit-hero h6 {
    font-size: 12px;
    font-weight: 300;
    color: var(--theme-color);
    text-transform: uppercase;
    letter-spacing: 6px;
    margin-bottom: 15px;
}

.credit-hero h1 {
    font-size: 70px;
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
    margin-bottom: 20px;
}

.credit-hero h1 span {
    color: var(--theme-color);
}

.credit-hero p {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
    margin: 0 auto;
}

/* Calculator Card - Dark theme matching ATV cards - COMPACT VERSION */
.calculator-card {
    background: #1b1b1b;
    padding: 40px;
    border-radius: 0;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
    clip-path: polygon(0 0, 100% 0, 100% 92%, 92% 100%, 0 100%);
    transition: all 0.3s ease;
}

.calculator-card:hover {
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

.calculator-card .form-group {
    margin-bottom: 20px;
}

.calculator-card label {
    font-weight: 600;
    color: #fff;
    margin-bottom: 6px;
    display: block;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.calculator-card .form-control {
    border: 2px solid #333;
    border-radius: 8px;
    padding: 10px 15px;
    font-size: 14px;
    transition: all 0.3s ease;
    background: #2c2c2c;
    color: #fff;
}

.calculator-card .form-control:focus {
    border-color: var(--theme-color);
    box-shadow: 0 0 0 0.2rem rgba(216, 12, 36, 0.2);
    background: #333;
}

.calculator-card select.form-control {
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23ffffff' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 16px 12px;
}

.calculator-card select.form-control option {
    background: #2c2c2c;
    color: #fff;
}

/* Range Slider - Dark theme - COMPACT */
.form-range {
    width: 100%;
    height: 6px;
    background: #333;
    border-radius: 10px;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}

.form-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    background: var(--theme-color);
    cursor: pointer;
    border-radius: 50%;
    box-shadow: 0 2px 10px rgba(216, 12, 36, 0.5);
    transition: all 0.3s ease;
}

.form-range::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 4px 15px rgba(216, 12, 36, 0.7);
}

.form-range::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: var(--theme-color);
    cursor: pointer;
    border-radius: 50%;
    border: none;
    box-shadow: 0 2px 10px rgba(216, 12, 36, 0.5);
    transition: all 0.3s ease;
}

.form-range::-moz-range-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 4px 15px rgba(216, 12, 36, 0.7);
}

.form-range::-moz-range-track {
    background: #333;
    border-radius: 10px;
}

.range-value {
    display: flex;
    justify-content: space-between;
    margin-top: 6px;
    font-size: 12px;
    color: #999;
}

.range-value span {
    font-weight: 600;
    color: var(--theme-color);
}

/* Calculator Result - COMPACT */
.result-card {
    background: linear-gradient(135deg, #2c2c2c 0%, #1b1b1b 100%);
    padding: 14px;
    border-radius: 12px;
    border: 2px solid var(--theme-color);
    animation: slideInUp 0.5s ease;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.result-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.result-item {
    background: #2c2c2c;
    padding: 15px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    border: 1px solid #333;
}

.result-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(216, 12, 36, 0.3);
    border-color: var(--theme-color);
}

.result-label {
    font-size: 11px;
    color: #999;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.result-value {
    font-size: 22px;
    font-weight: 700;
    color: #fff;
}

.result-value.primary {
    font-size: 28px;
}

.result-value span {
    font-size: 14px;
    font-weight: 400;
    color: #999;
}

/* Condition Cards */
.condition-card {
    background: #fff;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    height: 100%;
    transition: all 0.3s ease;
}

.condition-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.12);
}

.condition-card .icon-box {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--theme-color) 0%, #ff0000 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
}

.condition-card .icon-box i {
    font-size: 32px;
    color: #fff;
}

.condition-card h4 {
    font-size: 22px;
    font-weight: 700;
    color: #1b1b1b;
    margin-bottom: 20px;
}

.condition-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.condition-list li {
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
    font-size: 15px;
    color: #555;
}

.condition-list li:last-child {
    border-bottom: none;
}

.condition-list li i {
    color: var(--theme-color);
    margin-right: 15px;
    font-size: 18px;
}

/* Process Steps */
.process-steps {
    margin-top: 20px;
}

.step-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 25px;
    position: relative;
}

.step-item:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 22px;
    top: 50px;
    width: 2px;
    height: calc(100% + 10px);
    background: linear-gradient(to bottom, var(--theme-color) 0%, transparent 100%);
}

.step-number {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, var(--theme-color) 0%, #ff0000 100%);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 18px;
    flex-shrink: 0;
    margin-right: 20px;
    box-shadow: 0 5px 15px rgba(216, 12, 36, 0.3);
}

.step-content h5 {
    font-size: 16px;
    font-weight: 700;
    color: #1b1b1b;
    margin-bottom: 8px;
}

.step-content p {
    font-size: 14px;
    color: #666;
    margin: 0;
    line-height: 1.6;
}

/* Info Box */
.info-box {
    background: #e3f2fd;
    border-left: 4px solid #2196f3;
    padding: 15px 20px;
    border-radius: 10px;
    display: flex;
    align-items: flex-start;
}

.info-box i {
    font-size: 20px;
    color: #2196f3;
    margin-right: 15px;
    margin-top: 2px;
}

.info-box p {
    margin: 0;
    font-size: 13px;
    color: #0d47a1;
    line-height: 1.6;
}

/* Application Form Card - Light with red accent */
.application-form-card {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    padding: 50px;
    border-radius: 0;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    border-left: 6px solid var(--theme-color);
    clip-path: polygon(0 0, 100% 0, 100% 88%, 88% 100%, 0 100%);
    transition: all 0.3s ease;
}

.application-form-card:hover {
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}

.application-form-card h4 {
    color: #1b1b1b;
    font-weight: 700;
    margin-bottom: 30px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.application-form-card h4 i {
    color: var(--theme-color);
    margin-right: 10px;
}

.application-form-card label {
    font-weight: 600;
    color: #1b1b1b;
    margin-bottom: 10px;
    display: block;
    font-size: 14px;
}

.application-form-card .form-control,
.application-form-card .form-select {
    border: 2px solid #ddd;
    border-radius: 10px;
    padding: 15px 20px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: #fff;
}

.application-form-card .form-control:focus,
.application-form-card .form-select:focus {
    border-color: var(--theme-color);
    box-shadow: 0 0 0 0.2rem rgba(216, 12, 36, 0.1);
}

.application-form-card .btn-primary {
    background: var(--theme-color);
    border: 2px solid var(--theme-color);
    color: #fff;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.application-form-card .btn-primary:hover {
    background: #1b1b1b;
    border-color: #1b1b1b;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(27, 27, 27, 0.3);
}

.application-form-card textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

.form-check {
    padding-left: 30px;
}

.form-check-input {
    width: 20px;
    height: 20px;
    margin-top: 0.15em;
    border: 2px solid #e0e0e0;
    cursor: pointer;
}

.form-check-input:checked {
    background-color: var(--theme-color);
    border-color: var(--theme-color);
}

.form-check-label {
    font-size: 14px;
    color: #555;
    cursor: pointer;
    line-height: 1.6;
}

/* Credit CTA Section */
.credit-cta {
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.credit-cta h2 {
    font-size: 42px;
    font-weight: 700;
}

.credit-cta p {
    font-size: 18px;
    max-width: 600px;
    margin: 0 auto 40px;
}

.btn-outline-light {
    border: 2px solid #fff;
    color: #fff;
    background: transparent;
}

.btn-outline-light:hover {
    background: #fff;
    color: var(--theme-color);
}

/* Responsive Styles */
@media (max-width: 991px) {
    .credit-hero h1 {
        font-size: 50px;
    }
    
    .calculator-card,
    .application-form-card {
        padding: 25px;
        margin-bottom: 30px;
    }
    
    .result-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .condition-card {
        padding: 30px;
        margin-bottom: 30px;
    }
}

@media (max-width: 767px) {
    .credit-hero {
        min-height: 50vh;
    }
    
    .credit-hero h1 {
        font-size: 36px;
    }
    
    .credit-hero p {
        font-size: 16px;
    }
    
    .calculator-card,
    .application-form-card {
        padding: 20px;
        clip-path: polygon(0 0, 100% 0, 100% 95%, 95% 100%, 0 100%);
    }
    
    .calculator-card .form-group {
        margin-bottom: 15px;
    }
    
    .result-card {
        padding: 15px;
    }
    
    .result-value {
        font-size: 20px;
    }
    
    .result-value.primary {
        font-size: 24px;
    }
    
    .condition-card .icon-box {
        width: 60px;
        height: 60px;
    }
    
    .condition-card .icon-box i {
        font-size: 28px;
    }
    
    .credit-cta h2 {
        font-size: 32px;
    }
    
    .credit-cta p {
        font-size: 16px;
    }
    
    .btn-lg {
        padding: 12px 30px;
        font-size: 14px;
    }
}

/* Animation Classes */
.animate-box {
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
}

.animate-box[data-animate-effect="fadeInUp"]:nth-child(1) {
    animation-delay: 0.2s;
}

.animate-box[data-animate-effect="fadeInUp"]:nth-child(2) {
    animation-delay: 0.4s;
}

.animate-box[data-animate-effect="fadeInUp"]:nth-child(3) {
    animation-delay: 0.6s;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Loading State */
.btn.loading {
    position: relative;
    color: transparent;
    pointer-events: none;
}

.btn.loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin-left: -10px;
    margin-top: -10px;
    border: 2px solid #fff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}
