/* ============================================
   Utu Bora Credit - Main Stylesheet
   Color Theme: Golden Yellow, White, Black
   ============================================ */

:root {
    --golden-yellow: #FFD700;
    --golden-dark: #F0B90B;
    --golden-light: #FFE55C;
    --pure-black: #000000;
    --dark-gray: #1A1A1A;
    --medium-gray: #333333;
    --light-gray: #F5F5F5;
    --white: #FFFFFF;
    --transition: all 0.3s ease;
    --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 5px 15px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* ============================================
   Global Styles
   ============================================ */
body {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    overflow-x: hidden;
}

.no-underline {
    text-decoration: none;
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
    background: linear-gradient(135deg, var(--pure-black) 0%, var(--dark-gray) 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #1a1a1a;
    border-top: 2px solid #FFD700;
    border-bottom: 2px solid #FFD700;
    opacity: 0.05;
    pointer-events: none;
}

.hero h1 {
    color: var(--golden-yellow);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

/* ============================================
   Cookie Banner
   ============================================ */
.cookies-privacy-card {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: var(--pure-black);
    border-top: 2px solid var(--golden-yellow);
    padding: 15px;
    box-shadow: var(--shadow-md);
}

.cookies-privacy-card p {
    margin: 0;
    font-size: 14px;
    color: var(--white);
}

.cookies-privacy-card a {
    color: var(--golden-yellow);
    text-decoration: underline;
}

.cookies-privacy-card .btn {
    font-size: 14px;
    padding: 5px 15px;
    background-color: var(--golden-yellow);
    color: var(--pure-black);
    border: none;
    font-weight: bold;
    transition: var(--transition);
}

.cookies-privacy-card .btn:hover {
    background-color: var(--golden-dark);
    color: var(--pure-black);
    transform: translateY(-2px);
}

/* ============================================
   Feature Cards
   ============================================ */
.feature-link {
    display: block;
    text-decoration: none !important;
}

.feature-link:hover .feature {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.feature {
    transition: var(--transition);
    background: var(--white);
    border-radius: 12px;
    border: 1px solid #e9ecef;
}

.feature h3 {
    color: var(--pure-black);
    font-size: 1.25rem;
}

.feature i {
    color: var(--golden-yellow);
}

/* ============================================
   Loan Products Grid
   ============================================ */
.loan-product-item {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.loan-product-item:hover {
    transform: translateY(-5px);
}

.loan-product-inner {
    border: 1px solid #e9ecef;
    transition: var(--transition);
    padding: 1.5rem;
    background-color: var(--white);
    border-radius: 12px;
    height: 100%;
    text-align: center;
}

.loan-product-inner:hover {
    box-shadow: var(--shadow-lg) !important;
    border-color: var(--golden-yellow);
}

.loan-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 1rem;
    background: linear-gradient(135deg, var(--golden-yellow), var(--golden-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.loan-icon i {
    font-size: 2rem;
    color: var(--pure-black);
}

.loan-product-inner h4 {
    color: var(--pure-black);
}

/* ============================================
   Buttons
   ============================================ */
.profile-btn {
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition);
    border: 2px solid transparent;
    box-shadow: var(--shadow-sm);
}

.profile-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-gold {
    background-color: var(--golden-yellow);
    color: var(--pure-black);
    border: 2px solid var(--golden-yellow);
}

.btn-gold:hover {
    background-color: var(--golden-dark);
    color: var(--pure-black);
    border-color: var(--golden-dark);
}

.btn-outline-gold {
    border: 2px solid var(--golden-yellow);
    color: var(--golden-yellow);
    background-color: transparent;
}

.btn-outline-gold:hover {
    background-color: var(--golden-yellow);
    color: var(--pure-black);
}

.btn-dark-custom {
    background-color: var(--pure-black);
    color: var(--white);
    border: 2px solid var(--pure-black);
}

.btn-dark-custom:hover {
    background-color: var(--dark-gray);
    color: var(--golden-yellow);
    border-color: var(--dark-gray);
}

/* ============================================
   Statistics Section
   ============================================ */
.stat-card {
    background: var(--white);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    transition: var(--transition);
    border-bottom: 3px solid var(--golden-yellow);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--golden-yellow);
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--medium-gray);
    font-size: 0.9rem;
    font-weight: 500;
}

/* ============================================
   Section Headers
   ============================================ */
.section-header {
    position: relative;
    margin-bottom: 3rem;
}

.section-header h2 {
    color: var(--pure-black);
    font-weight: 700;
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
}

.section-header h2:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(to right, var(--golden-yellow), var(--golden-dark));
}

/* ============================================
   Testimonials Section
   ============================================ */
.testimonial-card {
    background: var(--white);
    border-radius: 12px;
    padding: 1.5rem;
    margin: 0.5rem;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border-left: 4px solid var(--golden-yellow);
}

.testimonial-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.testimonial-text {
    font-style: italic;
    color: var(--medium-gray);
    margin-bottom: 1rem;
}

.testimonial-author {
    font-weight: 600;
    color: var(--golden-dark);
    margin-bottom: 0.25rem;
}

.testimonial-role {
    font-size: 0.8rem;
    color: #888;
}

/* ============================================
   Loan Application Banner
   ============================================ */
.loan-banner {
    background: linear-gradient(135deg, var(--pure-black) 0%, var(--dark-gray) 100%);
    border-radius: 15px;
    padding: 3rem 2rem;
    text-align: center;
    color: var(--white);
    border: 1px solid var(--golden-yellow);
}

.loan-banner h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--golden-yellow);
}

.loan-banner p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

/* ============================================
   Newsletter Section
   ============================================ */
.newsletter-section {
    background: linear-gradient(135deg, var(--golden-yellow) 0%, var(--golden-dark) 100%);
}

.newsletter-section h2,
.newsletter-section p {
    color: var(--pure-black);
}

/* ============================================
   Modal Styling
   ============================================ */
.modal-content {
    border-radius: 12px;
    border: none;
}

.modal-header {
    background: linear-gradient(135deg, var(--pure-black) 0%, var(--dark-gray) 100%);
    color: var(--golden-yellow);
    border-bottom: 2px solid var(--golden-yellow);
}

.modal-header .btn-close {
    filter: brightness(0) invert(1);
}

/* ============================================
   Alert Styling
   ============================================ */
.alert-success {
    background-color: var(--golden-light);
    border-color: var(--golden-yellow);
    color: var(--pure-black);
}

.my-centered-alert {
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 80%;
    margin: 4px auto;
}

/* ============================================
   Why Choose Us Section
   ============================================ */
.why-choose-card {
    background: var(--white);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    height: 100%;
    transition: var(--transition);
    border: 1px solid #e9ecef;
}

.why-choose-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--golden-yellow);
}

.why-choose-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, var(--golden-yellow), var(--golden-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.why-choose-icon i {
    font-size: 2.5rem;
    color: var(--pure-black);
}

.why-choose-card h3 {
    color: var(--pure-black);
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.why-choose-card p {
    color: var(--medium-gray);
}

/* ============================================
   Background Utilities
   ============================================ */
.bg-light-gray {
    background-color: var(--light-gray);
}

/* ============================================
   Responsive Adjustments
   ============================================ */
@media (max-width: 768px) {
    .feature {
        padding: 1.5rem 0.5rem !important;
    }
    
    .feature i.fa-3x {
        font-size: 2rem !important;
    }
    
    .profile-buttons {
        flex-direction: column;
        gap: 1rem;
    }
    
    .profile-btn {
        width: 100%;
    }
    
    .stat-number {
        font-size: 1.8rem;
    }
    
    .loan-banner {
        padding: 2rem 1rem;
    }
    
    .loan-banner h2 {
        font-size: 1.5rem;
    }
    
    .why-choose-card {
        padding: 1.5rem;
    }
}

@media (min-width: 576px) {
    .w-sm-45 {
        width: 45% !important;
    }
}

/* ============================================
   CAPTCHA Styling
   ============================================ */
.captcha-container {
    background-color: var(--light-gray);
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 15px;
}

.captcha-question {
    font-weight: bold;
    font-size: 1.1em;
    margin-right: 10px;
}

/* Add these styles to your existing styles.css file */

/* ============================================
   Registration Form Specific Styles
   ============================================ */

/* Card Styling */
.card {
    border: none;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.card-header {
    background: linear-gradient(135deg, var(--pure-black) 0%, var(--dark-gray) 100%);
    border-bottom: 3px solid var(--golden-yellow);
    padding: 1.5rem;
}

.card-header h1 {
    font-size: 1.75rem;
    font-weight: 600;
}

.card-header i {
    color: var(--golden-yellow);
}

.card-body {
    padding: 2rem;
}

/* Form Floating Labels */
.form-floating {
    margin-bottom: 1rem;
}

.form-floating > .form-control,
.form-floating > .form-select {
    border: 2px solid #e9ecef;
    border-radius: 10px;
    transition: var(--transition);
}

.form-floating > .form-control:focus,
.form-floating > .form-select:focus {
    border-color: var(--golden-yellow);
    box-shadow: 0 0 0 0.25rem rgba(255, 215, 0, 0.25);
}

.form-floating > label {
    color: var(--medium-gray);
}

.form-floating > label i {
    margin-right: 0.5rem;
    color: var(--golden-dark);
}

/* Form Text Helpers */
.form-text {
    font-size: 0.8rem;
    margin-top: 0.25rem;
}

.form-text i {
    color: var(--golden-dark);
}

/* Checkbox Styling */
.form-check-input {
    width: 1.2rem;
    height: 1.2rem;
    margin-top: 0.15rem;
    border: 2px solid #e9ecef;
    transition: var(--transition);
}

.form-check-input:checked {
    background-color: var(--golden-yellow);
    border-color: var(--golden-yellow);
}

.form-check-input:focus {
    border-color: var(--golden-yellow);
    box-shadow: 0 0 0 0.25rem rgba(255, 215, 0, 0.25);
}

.form-check-label {
    color: var(--medium-gray);
}

.form-check-label a {
    color: var(--golden-dark);
    text-decoration: none;
    font-weight: 500;
}

.form-check-label a:hover {
    color: var(--golden-yellow);
    text-decoration: underline;
}

/* Section Headers in Form */
.card-body h5 {
    color: var(--pure-black);
    font-weight: 600;
    border-bottom: 2px solid var(--golden-yellow);
    padding-bottom: 0.75rem;
}

.card-body h5 i {
    color: var(--golden-dark);
}

/* Alert Styling */
.alert-danger {
    background-color: #f8d7da;
    border-left: 4px solid #dc3545;
    border-radius: 10px;
}

.alert-danger ul {
    list-style: none;
    padding-left: 0;
}

.alert-danger li {
    margin-bottom: 0.5rem;
}

.alert-danger li i {
    color: #dc3545;
}

.alert-info {
    background-color: #d1ecf1;
    border-left: 4px solid #0c5460;
    border-radius: 10px;
    color: #0c5460;
}

/* Processing Notification */
#processing-notification {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 9999;
    min-width: 300px;
    text-align: center;
    background: var(--white);
    border: 2px solid var(--golden-yellow);
    box-shadow: var(--shadow-lg);
    border-radius: 15px;
}

.spinner-border {
    color: var(--golden-yellow);
}

/* Button Styling */
.btn-primary {
    background: linear-gradient(135deg, var(--golden-yellow), var(--golden-dark));
    border: none;
    border-radius: 50px;
    padding: 0.75rem;
    font-weight: 600;
    color: var(--pure-black);
    transition: var(--transition);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.4);
    color: var(--pure-black);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-primary:disabled {
    background: #ccc;
    transform: none;
    cursor: not-allowed;
}

/* Modal Styling */
.modal-content {
    border-radius: 15px;
    overflow: hidden;
}

.modal-header {
    background: linear-gradient(135deg, var(--pure-black) 0%, var(--dark-gray) 100%);
    border-bottom: 2px solid var(--golden-yellow);
}

.modal-header .modal-title {
    color: var(--golden-yellow);
}

.modal-header .modal-title i {
    margin-right: 0.5rem;
}

.modal-footer .btn-primary {
    background: var(--golden-yellow);
    color: var(--pure-black);
}

.modal-footer .btn-primary:hover {
    background: var(--golden-dark);
}

/* Password Requirements Styling */
#password + .form-text small span {
    transition: var(--transition);
    display: inline-block;
    margin-right: 0.5rem;
}

#password + .form-text small span.text-success {
    color: #28a745 !important;
    font-weight: 600;
}

#password + .form-text small span.text-muted {
    color: #6c757d !important;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .card-body {
        padding: 1.5rem;
    }
    
    .card-header h1 {
        font-size: 1.25rem;
    }
    
    .form-floating {
        margin-bottom: 0.75rem;
    }
    
    #processing-notification {
        min-width: 250px;
        font-size: 0.9rem;
    }
}

/* Validation Styles */
.was-validated .form-control:valid,
.form-control.is-valid {
    border-color: #28a745;
}

.was-validated .form-control:invalid,
.form-control.is-invalid {
    border-color: #dc3545;
}

.was-validated .form-control:valid:focus,
.form-control.is-valid:focus {
    border-color: #28a745;
    box-shadow: 0 0 0 0.25rem rgba(40, 167, 69, 0.25);
}

/* Link Styling */
.text-center a {
    color: var(--golden-dark);
    text-decoration: none;
    font-weight: 500;
}

.text-center a:hover {
    color: var(--golden-yellow);
    text-decoration: underline;
}

/* Select Dropdown Styling */
.form-select {
    cursor: pointer;
}

.form-select:focus {
    border-color: var(--golden-yellow);
    box-shadow: 0 0 0 0.25rem rgba(255, 215, 0, 0.25);
}