/* Process Transaction - Payment Gateway Website Styles */

:root {
    --primary-color: #1a5fb4;
    --secondary-color: #26a269;
    --accent-color: #613583;
    --dark-bg: #1c1c1c;
    --light-bg: #f6f6f6;
    --text-dark: #2d2d2d;
    --text-light: #ffffff;
    --border-color: #e0e0e0;
    --success-color: #2ec27e;
    --error-color: #e01b24;
    --warning-color: #ff7800;
    --gradient-primary: linear-gradient(135deg, #1a5fb4 0%, #3584e4 100%);
    --gradient-secondary: linear-gradient(135deg, #26a269 0%, #33d17a 100%);
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.15);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.2);
    --border-radius: 8px;
    --border-radius-lg: 16px;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

/* Touch-friendly improvements */
button, a, input, select, textarea {
    touch-action: manipulation;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: #ffffff;
}

/* Header Styles */
header {
    background: var(--gradient-primary);
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-md);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo img {
    height: 50px;
    width: auto;
}

.logo-text {
    color: var(--text-light);
    font-size: 1.5rem;
    font-weight: 700;
}

/* Navigation */
nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

nav a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

nav a:hover {
    background: rgba(255,255,255,0.2);
}

nav a.active {
    background: rgba(255,255,255,0.3);
}

.auth-buttons {
    display: flex;
    gap: 1rem;
}

.btn {
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    font-size: 1rem;
    display: inline-block;
    text-align: center;
}

.btn-primary {
    background: var(--secondary-color);
    color: var(--text-light);
}

.btn-primary:hover {
    background: #218358;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background: transparent;
    color: var(--text-light);
    border: 2px solid var(--text-light);
}

.btn-secondary:hover {
    background: var(--text-light);
    color: var(--primary-color);
}

.btn-outline {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: var(--text-light);
}

/* Hero Section */
.hero {
    margin-top: 80px;
    background: linear-gradient(135deg, #1a5fb4 0%, #613583 100%);
    color: var(--text-light);
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../images/hero-banner.jpg') center/cover;
    opacity: 0.2;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-content p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

.hero-image img {
    width: 100%;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
}

/* Features Section */
.features {
    padding: 5rem 0;
    background: var(--light-bg);
}

.section-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.125rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: white;
    padding: 2rem;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    text-align: center;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.feature-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: var(--border-radius);
    margin-bottom: 1.5rem;
}

.feature-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.feature-card p {
    color: #666;
    margin-bottom: 1.5rem;
}

/* Payment Methods Section */
.payment-methods {
    padding: 5rem 0;
    background: white;
}

.payment-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.payment-card {
    background: var(--light-bg);
    padding: 2rem;
    border-radius: var(--border-radius-lg);
    text-align: center;
    transition: var(--transition);
    border: 2px solid transparent;
}

.payment-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px);
}

.payment-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.payment-card h3 {
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.payment-card p {
    color: #666;
    font-size: 0.9rem;
}

/* Stats Section */
.stats {
    background: var(--gradient-primary);
    color: var(--text-light);
    padding: 4rem 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    text-align: center;
}

.stat-item h3 {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

.stat-item p {
    font-size: 1.125rem;
    opacity: 0.9;
}

/* Security Section */
.security {
    padding: 5rem 0;
    background: var(--light-bg);
}

.security-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.security-image img {
    width: 100%;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
}

.security-features {
    list-style: none;
}

.security-features li {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.security-features li::before {
    content: '✓';
    background: var(--success-color);
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* CTA Section */
.cta {
    background: var(--gradient-secondary);
    color: var(--text-light);
    padding: 4rem 0;
    text-align: center;
}

.cta h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cta p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

/* Footer */
footer {
    background: var(--dark-bg);
    color: var(--text-light);
    padding: 4rem 0 2rem;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-section h4 {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    color: var(--secondary-color);
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 0.75rem;
}

.footer-section a {
    color: #aaa;
    text-decoration: none;
    transition: var(--transition);
}

.footer-section a:hover {
    color: var(--text-light);
}

.footer-section p {
    color: #aaa;
    margin-bottom: 0.5rem;
}

.footer-bottom {
    border-top: 1px solid #444;
    padding-top: 2rem;
    text-align: center;
    color: #888;
}

.footer-bottom a {
    color: #aaa;
    text-decoration: none;
    margin: 0 1rem;
}

.footer-bottom a:hover {
    color: var(--text-light);
}

/* Page Header */
.page-header {
    margin-top: 80px;
    background: var(--gradient-primary);
    color: var(--text-light);
    padding: 4rem 0;
    text-align: center;
}

.page-header h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.page-header p {
    font-size: 1.125rem;
    opacity: 0.9;
}

/* Content Section */
.content-section {
    padding: 4rem 0;
}

.content-section.alt {
    background: var(--light-bg);
}

.content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.content-grid.reverse {
    direction: rtl;
}

.content-grid.reverse > * {
    direction: ltr;
}

.content-image img {
    width: 100%;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
}

.content-text h2 {
    color: var(--primary-color);
    font-size: 2rem;
    margin-bottom: 1rem;
}

.content-text p {
    color: #666;
    margin-bottom: 1.5rem;
}

.content-list {
    list-style: none;
}

.content-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    color: #555;
}

.content-list li::before {
    content: '→';
    color: var(--secondary-color);
    font-weight: bold;
}

/* Form Styles */
.form-container {
    max-width: 600px;
    margin: 0 auto;
    background: white;
    padding: 3rem;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
}

.form-container h2 {
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-group.checkbox {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.form-group.checkbox input {
    width: auto;
    margin-top: 0.25rem;
}

.form-group.checkbox label {
    margin-bottom: 0;
    font-size: 0.9rem;
    color: #666;
}

.form-group.checkbox a {
    color: var(--primary-color);
}

.form-submit {
    width: 100%;
    padding: 1rem;
    font-size: 1.1rem;
}

.error-message {
    background: #ffebee;
    color: var(--error-color);
    padding: 1rem;
    border-radius: var(--border-radius);
    margin-bottom: 1.5rem;
    text-align: center;
}

.success-message {
    background: #e8f5e9;
    color: var(--success-color);
    padding: 2rem;
    border-radius: var(--border-radius);
    text-align: center;
}

.success-message h3 {
    margin-bottom: 1rem;
}

/* Contact Info */
.contact-info {
    background: var(--light-bg);
    padding: 2rem;
    border-radius: var(--border-radius-lg);
    margin-bottom: 2rem;
}

.contact-info-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.contact-info-item:last-child {
    margin-bottom: 0;
}

.contact-info-item i {
    color: var(--primary-color);
    font-size: 1.25rem;
}

/* Pricing Cards */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.pricing-card {
    background: white;
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    text-align: center;
    border: 2px solid transparent;
    transition: var(--transition);
}

.pricing-card.featured {
    border-color: var(--primary-color);
    transform: scale(1.05);
}

.pricing-card:hover {
    box-shadow: var(--shadow-lg);
}

.pricing-card h3 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.pricing-card .price {
    font-size: 3rem;
    color: var(--text-dark);
    font-weight: 700;
    margin: 1rem 0;
}

.pricing-card .price span {
    font-size: 1rem;
    color: #666;
}

.pricing-features {
    list-style: none;
    margin: 2rem 0;
}

.pricing-features li {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
}

.pricing-features li:last-child {
    border-bottom: none;
}

/* Documentation/FAQ Styles */
.faq-item {
    background: white;
    border-radius: var(--border-radius);
    margin-bottom: 1rem;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.faq-question {
    padding: 1.5rem;
    background: var(--light-bg);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
}

.faq-answer {
    padding: 1.5rem;
    display: none;
}

.faq-item.active .faq-answer {
    display: block;
}

/* API Documentation */
.code-block {
    background: var(--dark-bg);
    color: #33d17a;
    padding: 1.5rem;
    border-radius: var(--border-radius);
    font-family: 'Courier New', monospace;
    overflow-x: auto;
    margin: 1rem 0;
}

.endpoint {
    background: var(--light-bg);
    padding: 1rem;
    border-radius: var(--border-radius);
    margin-bottom: 1rem;
    border-left: 4px solid var(--primary-color);
}

.endpoint-method {
    background: var(--secondary-color);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: bold;
    margin-right: 1rem;
}

/* Responsive Design - Mobile First */

/* Tablet and below */
@media (max-width: 968px) {
    .hero-container,
    .content-grid,
    .security-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .hero-content h1 {
        font-size: 2.2rem;
    }
    
    .hero-content p {
        font-size: 1.1rem;
    }
    
    .hero-image {
        order: -1;
    }
    
    nav ul {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--primary-color);
        flex-direction: column;
        padding: 1rem;
        gap: 0.5rem;
        box-shadow: var(--shadow-lg);
    }
    
    nav ul.active {
        display: flex;
    }
    
    nav a {
        display: block;
        padding: 0.75rem 1rem;
        text-align: center;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .auth-buttons {
        display: none;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .payment-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin: 0 auto;
    }
    
    .pricing-card.featured {
        transform: none;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile */
@media (max-width: 600px) {
    .header-container {
        padding: 0.75rem 1rem;
    }
    
    .logo img {
        height: 40px;
    }
    
    .logo-text {
        font-size: 1.1rem;
    }
    
    .hero {
        padding: 2rem 0;
        margin-top: 70px;
    }
    
    .hero-container {
        padding: 0 1rem;
    }
    
    .hero-content h1 {
        font-size: 1.75rem;
        line-height: 1.3;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .hero-buttons .btn {
        width: 100%;
        text-align: center;
    }
    
    .section-container {
        padding: 0 1rem;
    }
    
    .section-header h2 {
        font-size: 1.5rem;
    }
    
    .section-header p {
        font-size: 1rem;
    }
    
    .features,
    .payment-methods,
    .security,
    .content-section {
        padding: 3rem 0;
    }
    
    .feature-card {
        padding: 1.5rem;
    }
    
    .feature-card h3 {
        font-size: 1.25rem;
    }
    
    .payment-grid {
        grid-template-columns: 1fr;
    }
    
    .payment-card {
        padding: 1.5rem;
    }
    
    .stats {
        padding: 2rem 0;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .stat-item h3 {
        font-size: 2rem;
    }
    
    .stat-item p {
        font-size: 1rem;
    }
    
    .content-grid {
        gap: 2rem;
    }
    
    .content-text h2 {
        font-size: 1.5rem;
    }
    
    .content-list li {
        font-size: 0.95rem;
    }
    
    .form-container {
        padding: 1.5rem;
        margin: 0 0.5rem;
    }
    
    .form-container h2 {
        font-size: 1.5rem;
    }
    
    .form-group {
        margin-bottom: 1rem;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 0.875rem;
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    .form-group.checkbox {
        flex-direction: row;
    }
    
    .form-group.checkbox label {
        font-size: 0.85rem;
    }
    
    .btn {
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
    }
    
    .page-header {
        margin-top: 70px;
        padding: 2.5rem 1rem;
    }
    
    .page-header h1 {
        font-size: 1.75rem;
    }
    
    .page-header p {
        font-size: 1rem;
    }
    
    .pricing-card {
        padding: 1.5rem;
    }
    
    .pricing-card .price {
        font-size: 2.5rem;
    }
    
    .pricing-features li {
        font-size: 0.9rem;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-section h4 {
        font-size: 1.1rem;
    }
    
    .footer-section ul li {
        font-size: 0.9rem;
    }
    
    .footer-bottom {
        padding-top: 1.5rem;
    }
    
    .footer-bottom p {
        font-size: 0.85rem;
    }
    
    .cta {
        padding: 2.5rem 1rem;
    }
    
    .cta h2 {
        font-size: 1.5rem;
    }
    
    .cta p {
        font-size: 1rem;
    }
    
    .code-block {
        padding: 1rem;
        font-size: 0.85rem;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .endpoint {
        padding: 0.75rem;
    }
    
    .faq-question {
        padding: 1rem;
        font-size: 0.95rem;
    }
    
    .faq-answer {
        padding: 1rem;
        font-size: 0.9rem;
    }
    
    .contact-info {
        padding: 1.5rem;
    }
    
    .contact-info-item {
        font-size: 0.9rem;
    }
    
    table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    th, td {
        padding: 0.5rem;
        font-size: 0.85rem;
    }
}

/* Small mobile */
@media (max-width: 375px) {
    .hero-content h1 {
        font-size: 1.5rem;
    }
    
    .section-header h2 {
        font-size: 1.35rem;
    }
    
    .feature-card h3 {
        font-size: 1.1rem;
    }
    
    .btn {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }
}

/* Mobile Menu */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.6s ease-out;
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.mt-2 {
    margin-top: 2rem;
}

.mb-2 {
    margin-bottom: 2rem;
}

.hidden {
    display: none;
}
