/* PayCash.Live - Custom Styles */

/* Base Styles */
:root {
    --primary-color: #198754;
    --secondary-color: #0d6efd;
    --dark-bg: #1a1a2e;
    --card-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --success-gradient: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    overflow-x: hidden;
}

/* Navbar */
.navbar {
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.95) !important;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.navbar-dark .navbar-nav .nav-link {
    color: #495057;
}

.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link.active {
    color: #198754;
}

.navbar-brand {
    font-size: 1.5rem;
    letter-spacing: -0.5px;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #f5f7fa 0%, #e4e8ec 100%);
    min-height: 100vh;
    padding-top: 80px;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23198754' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-content h1 {
    line-height: 1.2;
    animation: fadeInUp 0.8s ease-out;
}

.hero-content .lead {
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero-content .btn {
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

/* Credit Card Preview */
.payment-card-preview {
    perspective: 1000px;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeInRight 0.8s ease-out;
}

.credit-card {
    width: 340px;
    height: 215px;
    background: var(--card-gradient);
    border-radius: 20px;
    padding: 25px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    position: relative;
    transform: rotateY(-10deg) rotateX(5deg);
    transition: transform 0.5s ease;
}

.credit-card:hover {
    transform: rotateY(0deg) rotateX(0deg);
}

.credit-card .card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.credit-card .card-header i {
    color: rgba(255, 255, 255, 0.9);
}

.credit-card .card-number {
    display: flex;
    gap: 15px;
    font-size: 1.4rem;
    letter-spacing: 3px;
    color: white;
    font-family: 'Courier New', monospace;
    margin-bottom: 30px;
}

.credit-card .card-details {
    display: flex;
    justify-content: space-between;
    color: rgba(255, 255, 255, 0.9);
}

.credit-card .card-details small {
    font-size: 0.65rem;
    text-transform: uppercase;
    opacity: 0.8;
}

/* Features Section */
.icon-box {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1) !important;
}

/* Payment Form */
#payment-form .card {
    background: white;
    border-radius: 20px;
}

#paymentForm .form-control,
#paymentForm .form-select {
    border: 2px solid #e9ecef;
    padding: 12px 16px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

#paymentForm .form-control:focus,
#paymentForm .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(25, 135, 84, 0.1);
}

#paymentForm .input-group-text {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-right: none;
}

#paymentForm .form-control:focus + .input-group-text,
#paymentForm .input-group:focus-within .input-group-text {
    border-color: var(--primary-color);
}

#paymentForm .input-group-text:last-child {
    border-left: none;
    border-right: 2px solid #e9ecef;
}

#submitBtn {
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

#submitBtn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(25, 135, 84, 0.3);
}

#submitBtn:active {
    transform: translateY(0);
}

/* Security Section */
.security-badges {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.badge-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 30px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease;
}

.badge-item:hover {
    transform: scale(1.05);
}

/* Payment Methods */
.payment-method {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 20px 30px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.payment-method:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.payment-method span {
    font-weight: 500;
    color: #495057;
}

/* Method Icon SVG */
.method-icon {
    width: 50px;
    height: 50px;
}

/* Form Validation */
.was-validated .form-control:invalid,
.form-control.is-invalid {
    border-color: #dc3545;
}

.was-validated .form-control:valid,
.form-control.is-valid {
    border-color: #198754;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Responsive Adjustments */
@media (max-width: 991px) {
    .hero-section {
        padding-top: 100px;
        text-align: center;
    }
    
    .hero-content .d-flex {
        justify-content: center;
    }
    
    .credit-card {
        width: 300px;
        height: 190px;
        transform: rotateY(0deg);
    }
    
    .credit-card .card-number {
        font-size: 1.2rem;
    }
}

@media (max-width: 767px) {
    .hero-section {
        padding: 120px 0 60px;
    }
    
    .hero-content h1 {
        font-size: 2rem !important;
    }
    
    .credit-card {
        width: 280px;
        height: 175px;
        padding: 20px;
    }
    
    .security-badges {
        gap: 20px;
    }
    
    .badge-item {
        padding: 20px;
    }
    
    .payment-method {
        padding: 15px 20px;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 1.75rem !important;
    }
    
    #paymentForm .input-group {
        flex-wrap: nowrap;
    }
    
    .security-badges {
        flex-direction: column;
        align-items: center;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #198754;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #146c43;
}

/* Loading Animation */
.loading {
    position: relative;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Payment Method Selection */
.payment-method-option {
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 15px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.payment-method-option:hover {
    border-color: #198754;
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(25, 135, 84, 0.15);
}

.payment-method-option.selected {
    border-color: #198754;
    background: rgba(25, 135, 84, 0.05);
}

.payment-method-option .check-icon {
    position: absolute;
    top: 8px;
    right: 8px;
    color: #198754;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.payment-method-option.selected .check-icon {
    opacity: 1;
}

.payment-method-option span {
    font-weight: 500;
    font-size: 0.9rem;
    color: #495057;
}

.payment-logo {
    height: 35px;
    width: auto;
    object-fit: contain;
}

/* Provider Icons */
.provider-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.provider-icon svg {
    width: 100%;
    height: 100%;
}

.bkash-icon svg text {
    font-family: Arial, sans-serif;
    font-weight: 800;
}

.nagad-icon svg text {
    font-family: Arial, sans-serif;
    font-weight: 700;
}

.rocket-icon svg text {
    font-family: Arial, sans-serif;
    font-weight: 700;
}

/* Hero Payment Partners */
.payment-partners {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    padding: 15px 20px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.partner-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 15px;
    border-radius: 25px;
    font-size: 0.85rem;
    font-weight: 500;
    color: #495057;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.partner-icon {
    width: 24px;
    height: 24px;
}

.partner-icon svg {
    width: 100%;
    height: 100%;
}

/* Hosted By */
.hosted-by {
    text-align: center;
}

.hosted-by a:hover {
    text-decoration: underline !important;
}

.payment-fields {
    animation: fadeInUp 0.3s ease-out;
}

/* Mobile Banking Specific Styles */
#bkashFields,
#nagadFields,
#rocketFields {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
}

#bkashFields {
    border-left: 4px solid #e91e63;
}

#nagadFields {
    border-left: 4px solid #f44336;
}

#rocketFields {
    border-left: 4px solid #9c27b0;
}

#stripeFields {
    border-left: 4px solid #635bff;
}

#atlasFields {
    border-left: 4px solid #00a1e0;
}

/* Alert Styles */
.alert {
    border-radius: 12px;
    border: none;
}

.alert-info {
    background: #e7f3ff;
    color: #0c5460;
}
