/* ========== SERVICES PAGE STYLES ========== */
:root {
    --navbar-height: 80px;
    --primary-blue-nav: #1e3a8a;
    --primary-blue-deep: #0f2b5c;
    --accent-gold: #FFD700;
    --mid-gray: #EEEEEE;
    --text-dark: #333;
    --navbar-blur: rgba(30, 58, 138, 0.95);
    --card-text-blue: #1e3a8a;
    --input-border: #e0e4e8;
}

*, *::before, *::after {
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    margin: 0;
    padding: 0;
    color: var(--text-dark);
    overflow-x: hidden;
    line-height: 1.6;
    background: var(--mid-gray);
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Navbar */
#main-navbar {
    background-color: transparent;
    padding: 20px 0;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

#main-navbar.scrolled {
    background-color: var(--navbar-blur);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 15px 0;
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid rgba(255, 215, 0, 0.2);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.left-nav-group {
    display: flex;
    align-items: center;
}

.logo-text {
    font-size: 1.8em;
    color: white;
    font-weight: 700;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    white-space: nowrap;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    position: relative;
    padding-bottom: 5px;
}

.logo-text::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-gold);
    transition: width 0.3s ease;
}

#main-navbar.scrolled .logo-text::after {
    width: 30px;
}

#main-navbar.scrolled .logo-text {
    color: var(--accent-gold);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    font-size: 1.6em;
}

.right-nav-group {
    display: flex;
    align-items: center;
    gap: 20px;
}

.mobile-menu-toggle {
    display: none;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    font-size: 1.5em;
    cursor: pointer;
    padding: 8px 15px;
    border-radius: 30px;
    transition: all 0.3s ease;
}

.mobile-menu-toggle:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: var(--accent-gold);
}

.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--navbar-blur);
    backdrop-filter: blur(15px);
    z-index: 1001;
    transition: right 0.3s cubic-bezier(0.2, 0.9, 0.4, 1.1);
    padding: 80px 25px 30px;
    box-shadow: -5px 0 30px rgba(0, 0, 0, 0.3);
    border-left: 1px solid rgba(255, 215, 0, 0.2);
}

.mobile-menu.open {
    right: 0;
}

.mobile-menu-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.2s;
}

.mobile-menu-close:hover {
    background: rgba(255, 215, 0, 0.3);
    transform: rotate(90deg);
}

.mobile-menu .nav-link,
.mobile-menu .home-btn,
.mobile-menu .translate-btn {
    display: block;
    width: 100%;
    text-align: center;
    margin-bottom: 15px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.mobile-menu .nav-link.active {
    background-color: var(--accent-gold);
    color: var(--primary-blue-deep);
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    display: none;
}

.overlay.active {
    display: block;
}

.nav-link {
    text-decoration: none;
    font-size: 1em;
    padding: 8px 18px;
    font-weight: 600;
    white-space: nowrap;
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
    cursor: pointer;
    background-color: transparent;
    color: white;
    border-style: none;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background-color: var(--accent-gold);
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: var(--accent-gold);
}

.nav-link:hover::after {
    width: 80%;
}

.nav-link.active {
    color: var(--accent-gold);
}

.nav-link.active::after {
    width: 80%;
}

.home-btn, .translate-btn {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    font-size: 1em;
    cursor: pointer;
    padding: 8px 15px;
    transition: all 0.3s ease;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border-radius: 30px;
    height: 40px;
    line-height: 1;
}

.home-btn:hover, .translate-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: var(--accent-gold);
    transform: translateY(-2px);
}

#main-navbar.scrolled .home-btn,
#main-navbar.scrolled .translate-btn {
    background: rgba(255, 215, 0, 0.15);
    border-color: var(--accent-gold);
    color: white;
}

/* Hero Section */
#hero-home {
    background-color: var(--primary-blue-nav);
    min-height: 40vh;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    text-align: left;
    padding: 0;
    position: relative;
    overflow: hidden;
}

#hero-home::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: linear-gradient(135deg, rgba(10, 26, 63, 0.95) 0%, rgba(10, 26, 63, 0.7) 100%);
    z-index: 1;
}

#hero-home .container {
    z-index: 2;
    position: relative;
    padding-top: calc(var(--navbar-height) + 20px);
    padding-bottom: 40px;
    width: 100%;
    padding-left: calc(15px + 60px);
}

.hero-content {
    max-width: 680px;
}

.hero-content h1 {
    font-size: 3.5em;
    color: white;
    margin: 0;
    line-height: 1.1;
    font-weight: 800;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
    margin-top: 12px;
    max-width: 500px;
}

/* Services Section */
.services-container {
    max-width: 1000px;
    margin: 30px auto 60px;
    padding: 0 32px;
    position: relative;
    z-index: 3;
}

.section-title {
    text-align: center;
    color: var(--primary-blue-deep);
    margin-bottom: 32px;
    font-size: 1.8em;
    font-weight: 700;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.service-card {
    background: white;
    border-radius: 16px;
    padding: 32px 28px;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    cursor: pointer;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
    border-color: rgba(30, 58, 138, 0.15);
}

.service-icon-wrapper {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: rgba(30, 58, 138, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.service-card:hover .service-icon-wrapper {
    background: var(--card-text-blue);
}

.service-icon-wrapper i {
    font-size: 1.5rem;
    color: var(--card-text-blue);
    transition: all 0.3s ease;
}

.service-card:hover .service-icon-wrapper i {
    color: white;
}

.service-card h2 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--card-text-blue);
    margin: 0 0 8px;
}

.service-card p {
    font-size: 0.9rem;
    color: #666;
    margin: 0 0 24px;
    line-height: 1.5;
    flex: 1;
}

.service-arrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--card-text-blue);
    transition: all 0.3s ease;
}

.service-card:hover .service-arrow {
    gap: 12px;
    color: #0f2b5c;
}

.service-arrow i {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.service-card:hover .service-arrow i {
    transform: translateX(4px);
}

/* Modal Styles */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.modal-box {
    background: white;
    border-radius: 24px;
    width: 90%;
    max-width: 460px;
    overflow: hidden;
    animation: modalIn 0.35s cubic-bezier(0.34, 1.2, 0.64, 1);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
}

@keyframes modalIn {
    from { opacity: 0; transform: scale(0.92) translateY(-20px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-header {
    padding: 28px 32px 0;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.modal-header h2 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--card-text-blue);
    margin: 0;
}

.modal-close {
    background: #f5f5f5;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    color: #777;
    font-size: 1.2rem;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.modal-close:hover {
    background: #e8e8e8;
    color: #333;
    transform: rotate(90deg);
}

.modal-body {
    padding: 24px 32px 32px;
}

.form-group {
    margin-bottom: 22px;
}

.form-label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: #444;
    margin-bottom: 8px;
    letter-spacing: 0.01em;
}

/* Dropdown/Select Styles */
.select-wrapper {
    position: relative;
}

.select-wrapper select {
    width: 100%;
    padding: 14px 48px 14px 16px;
    border-radius: 12px;
    border: 1.5px solid var(--input-border);
    font-size: 1rem;
    font-weight: 500;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background: white;
    cursor: pointer;
    transition: all 0.2s;
    color: var(--text-dark);
    font-family: 'Inter', sans-serif;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23888' d='M1.41 0L6 4.58 10.59 0 12 1.41l-6 6-6-6z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 12px;
    padding-right: 44px;
}

.select-wrapper select:hover {
    border-color: #c0c4cc;
}

.select-wrapper select:focus {
    outline: none;
    border-color: var(--card-text-blue);
    box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.08);
}

.select-wrapper select option {
    padding: 12px 16px;
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-dark);
    background: white;
    cursor: pointer;
}

.select-wrapper select option:hover {
    background: #f0f4fa;
}

.select-arrow {
    display: none;
}

.input-wrapper {
    position: relative;
}

.input-wrapper input {
    width: 100%;
    padding: 14px 52px 14px 16px;
    border-radius: 12px;
    border: 1.5px solid var(--input-border);
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.2s;
    background: white;
    color: var(--text-dark);
    font-family: 'Inter', sans-serif;
}

.input-wrapper input:focus {
    outline: none;
    border-color: var(--card-text-blue);
    box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.08);
}

.input-wrapper input.error {
    border-color: #d32f2f;
}

.input-wrapper .field-logo {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    height: 26px;
    width: 26px;
    border-radius: 6px;
    object-fit: contain;
    display: none;
}

.input-wrapper .phone-prefix {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    font-size: 0.95rem;
    pointer-events: none;
    font-weight: 500;
}

.input-wrapper input.phone-input {
    padding-left: 60px;
}

.error-message {
    color: #d32f2f;
    font-size: 0.82rem;
    margin-top: 6px;
    display: none;
    font-weight: 500;
}

.error-message.visible {
    display: block;
}

.form-actions {
    display: flex;
    gap: 12px;
    margin-top: 28px;
}

.btn {
    flex: 1;
    padding: 14px 0;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    font-family: 'Inter', sans-serif;
    letter-spacing: 0.01em;
}

.btn-primary {
    background: var(--card-text-blue);
    color: white;
    box-shadow: 0 4px 12px rgba(30, 58, 138, 0.25);
}

.btn-primary:hover {
    background: #0f2b5c;
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(30, 58, 138, 0.35);
}

.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-outline {
    background: #f5f5f5;
    color: #666;
}

.btn-outline:hover {
    background: #e8e8e8;
    color: #444;
}

.merchant-logo-preview {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
    padding: 8px 12px;
    background: #f8f9fb;
    border-radius: 10px;
    font-size: 0.85rem;
    color: #555;
    font-weight: 500;
}

.merchant-logo-preview img {
    height: 22px;
    width: auto;
}

/* Notification Toast */
.notification-toast {
    position: fixed;
    top: 100px;
    right: 20px;
    z-index: 9999;
    padding: 16px 24px;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 500;
    max-width: 420px;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    animation: slideInRight 0.4s cubic-bezier(0.34, 1.2, 0.64, 1);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.notification-toast.error {
    background: #ef4444;
    color: white;
}

.notification-toast.success {
    background: #10b981;
    color: white;
}

.notification-toast.dismissing {
    opacity: 0;
    transform: translateX(100%);
}

.notification-toast i {
    font-size: 20px;
    flex-shrink: 0;
}

.notification-toast span {
    flex: 1;
    line-height: 1.4;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

footer {
    background-color: var(--mid-gray);
    color: var(--text-dark);
    padding: 30px 0;
    text-align: center;
    font-size: 0.9em;
    border-top: 1px solid #ddd;
}

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.loading-line {
    width: 200px;
    height: 4px;
    background: linear-gradient(90deg, transparent 0%, var(--accent-gold) 50%, transparent 100%);
    border-radius: 2px;
    animation: loadingLine 1.5s ease-in-out infinite;
}

.loading-text {
    color: white;
    margin-top: 20px;
    font-size: 1.1rem;
    font-weight: 500;
}

@keyframes loadingLine {
    0% { transform: scaleX(0); opacity: 0.3; }
    50% { transform: scaleX(1); opacity: 1; }
    100% { transform: scaleX(0); opacity: 0.3; }
}

@media (max-width: 768px) {
    .right-nav-group .nav-link,
    .right-nav-group .home-btn,
    .right-nav-group .translate-btn {
        display: none !important;
    }
    
    .mobile-menu-toggle {
        display: inline-flex;
    }
    
    .hero-content h1 {
        font-size: 2.2em;
    }
    
    #hero-home .container {
        padding-left: calc(15px + 24px);
    }

    #hero-home {
        min-height: 35vh;
    }
    
    .services-container {
        padding: 0 20px;
        margin: -20px auto 40px;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .service-card {
        padding: 24px 20px;
    }

    .modal-box {
        max-width: 92%;
    }

    .modal-body {
        padding: 20px 24px 28px;
    }

    .modal-header {
        padding: 24px 24px 0;
    }
}

@media (max-width: 480px) {
    .logo-text {
        font-size: 1.2em;
    }
    
    .hero-content h1 {
        font-size: 1.8em;
    }
    
    #hero-home .container {
        padding-left: calc(15px + 16px);
    }
}