/* Thailand Digital Arrival Card - Custom Styles */

/* Import Poppins Font */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

/* CSS Variables for Colors */
:root {
    --accent-color-1: #2E8B57;
    --accent-color-2: #D32F2F;
    --link-color: #721730;
    --link-hover-color: #FCCA1D;
    --button-bg-color: #098957;
    --button-text-color: #fff;
    --top-menu-bg: #7E1935;
    --top-menu-links: #fff;
    --footer-bg: #7E1935;
    --footer-text: #fff;
    --footer-links: #fff;
    --accordion-bg: #7E1935;
    --accordion-text: #fff;
    --icon-color: #7E1935;
    --card-header-bg: #7E1935;
    --btn-outline-border: #7E1935;
    --text-primary-color: #7E1935;
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    font-weight: 400;
}

/* Typography */
h1 {
    font-weight: 700;
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

h2 {
    font-weight: 600;
    font-size: 2rem;
    margin-bottom: 1rem;
}

h3 {
    font-weight: 500;
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}

h4 {
    font-weight: 400;
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

h5 {
    font-weight: 300;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

/* Links */
a {
    color: var(--link-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--link-hover-color);
}

/* Text Primary */
.text-primary {
    color: var(--text-primary-color) !important;
}

/* Top Bar */
.top-bar {
    background-color: #f8f9fa;
    padding: 10px 0;
    border-bottom: 1px solid #dee2e6;
}

.logo-container {
    display: flex;
    align-items: center;
}

.logo {
    max-width: 300px;
    max-height: 120px;
    height: auto;
    width: auto;
}

.logo-link {
    display: inline-block;
}
/* Language Switcher */
.language-switcher {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    height: 100%;
}

.language-switcher .dropdown-toggle {
    border-color: var(--text-primary-color);
    color: var(--text-primary-color);
    font-weight: 500;
    padding: 0.375rem 0.75rem;
    transition: all 0.3s ease;
}

.language-switcher .dropdown-toggle:hover {
    background-color: var(--text-primary-color);
    color: #fff;
    border-color: var(--text-primary-color);
}

.language-switcher .dropdown-toggle img {
    vertical-align: middle;
    margin-right: 5px;
}

.language-switcher .dropdown-menu {
    min-width: 150px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.language-switcher .dropdown-item {
    padding: 0.5rem 1rem;
    display: flex;
    align-items: center;
    transition: all 0.2s ease;
}

.language-switcher .dropdown-item:hover {
    background-color: #f8f9fa;
    color: var(--text-primary-color);
}

.language-switcher .dropdown-item.active {
    background-color: var(--text-primary-color);
    color: #fff;
}

.language-switcher .dropdown-item img {
    margin-right: 8px;
}


.contact-info {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #666;
}

.contact-item i {
    color: var(--icon-color);
    width: 16px;
}

/* Top Menu */
.top-menu {
    background-color: var(--top-menu-bg) !important;
    min-height: 60px;
    padding: 0;
}

.top-menu .navbar-nav .nav-link {
    color: var(--top-menu-links) !important;
    font-weight: 500;
    padding: 1rem 1.25rem;
    transition: all 0.3s ease;
}

.top-menu .navbar-nav .nav-link i {
    color: #fff !important;
}

.top-menu .navbar-nav .nav-link:hover {
    color: var(--link-hover-color) !important;
    background-color: rgba(255, 255, 255, 0.1);
}

.top-menu .navbar-nav .nav-link:hover i {
    color: var(--link-hover-color) !important;
}

.top-menu .navbar-toggler {
    border-color: var(--top-menu-links);
}

.top-menu .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Mega Menu */
.mega-dropdown {
    position: static;
}

.mega-dropdown .mega-menu {
    position: fixed;
    left: 50%;
    transform: translateX(-50%);
    width: 90vw;
    max-width: 1140px;
    background-color: white;
    border: none;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    padding: 2rem;
    margin-top: 0;
    z-index: 1050;
}

.mega-menu .dropdown-header {
    color: var(--text-primary-color);
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--text-primary-color);
}

.mega-menu .dropdown-item {
    padding: 0.5rem 0;
    color: #333;
    border: none;
    background: none;
    transition: all 0.3s ease;
}

.mega-menu .dropdown-item:hover {
    background-color: rgba(126, 25, 53, 0.1);
    color: var(--text-primary-color);
    padding-left: 0.5rem;
}

.mega-menu .dropdown-item i {
    color: var(--icon-color);
    width: 20px;
}

/* Navigation Apply Button */
.nav-apply-btn {
    margin-left: 1rem;
    padding: 0.5rem 1.5rem;
}

/* Buttons */
.btn-apply {
    background-color: var(--button-bg-color);
    border-color: var(--button-bg-color);
    color: var(--button-text-color);
    font-weight: 600;
    padding: 0.75rem 2rem;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.btn-apply:hover {
    background-color: #076b47;
    border-color: #076b47;
    color: var(--button-text-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(9, 137, 87, 0.3);
}

.btn-primary {
    background-color: var(--text-primary-color);
    border-color: var(--text-primary-color);
    color: white;
    font-weight: 500;
}

.btn-primary:hover {
    background-color: #5d1429;
    border-color: #5d1429;
    color: white;
}

.btn-outline-primary {
    color: var(--btn-outline-border);
    border-color: var(--btn-outline-border);
}

.btn-outline-primary:hover {
    background-color: var(--btn-outline-border);
    border-color: var(--btn-outline-border);
    color: white;
}

/* Pulse Animation */
.pulse-button {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(9, 137, 87, 0.7);
    }
    70% {
        transform: scale(1.05);
        box-shadow: 0 0 0 10px rgba(9, 137, 87, 0);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(9, 137, 87, 0);
    }
}

/* Hero Section */
.hero-section {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    width: 100%;
    min-height: 400px;
    max-height: 450px;
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 16/9;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    max-width: 800px;
    padding: 2rem;
    min-width: 1000px;
}

.hero-content h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-content .lead {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.hero-buttons .btn {
    margin: 0.5rem;
}

/* Mobile Hero Adjustments */
@media (max-width: 768px) {
    .hero-section {
        min-height: 500px;
        aspect-ratio: auto;
    }
    
    .hero-content {
        min-width: auto;
        width: 100%;
        padding: 1rem;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-content .lead {
        font-size: 1.1rem;
    }
}

/* Sections */
.section {
    padding: 4rem 0;
}

.section-primary {
    background-color: var(--text-primary-color);
    color: white;
}

.section.bg-light {
    background-color: #f8f9fa;
}

/* Tiles/Cards */
.tiles-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.tile {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tile:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.tile-icon {
    font-size: 3em;
    color: var(--icon-color);
    margin-bottom: 1rem;
    display: block;
}

.tile h3 {
    color: var(--text-primary-color);
    margin-bottom: 1rem;
}

/* Card Headers */
.card-header {
    background-color: var(--card-header-bg) !important;
    color: white !important;
    border-bottom: none;
}

/* Accordions */
.accordion-item {
    border: 1px solid #dee2e6;
    margin-bottom: 0.5rem;
    border-radius: 8px !important;
    overflow: hidden;
}

.accordion-header {
    margin-bottom: 0;
}

.accordion-button {
    background-color: var(--accordion-bg);
    color: var(--accordion-text);
    font-weight: 600;
    border: none;
    padding: 1rem 1.5rem;
}

.accordion-button:not(.collapsed) {
    background-color: var(--accordion-bg);
    color: var(--accordion-text);
    box-shadow: none;
}

.accordion-button:focus {
    box-shadow: none;
    border-color: transparent;
}

.accordion-button::after {
    filter: brightness(0) invert(1);
}

.accordion-body {
    padding: 1.5rem;
    background-color: white;
}

/* Lists */
.list-numbered {
    counter-reset: item;
    padding-left: 0;
}

.list-numbered li {
    display: block;
    margin-bottom: 1.5rem;
    padding-left: 3rem;
    position: relative;
    counter-increment: item;
}

.list-numbered li::before {
    content: counter(item);
    background-color: var(--text-primary-color);
    color: white;
    font-weight: bold;
    font-size: 1.2rem;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    left: 0;
    top: 0;
}

ul.list-styled {
    list-style: none;
    padding-left: 0;
}

ul.list-styled li {
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
    position: relative;
}

ul.list-styled li::before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: var(--accent-color-1);
    position: absolute;
    left: 0;
    top: 0;
}

/* Breadcrumbs */
.breadcrumb-nav {
    background-color: #f8f9fa;
    padding: 1rem 0;
    border-bottom: 1px solid #dee2e6;
}

.breadcrumb {
    background: none;
    padding: 0;
    margin: 0;
}

.breadcrumb-item a {
    color: var(--link-color);
    text-decoration: none;
}

.breadcrumb-item a:hover {
    color: var(--link-hover-color);
}

.breadcrumb-item.active {
    color: #6c757d;
}

/* Footer */
.footer {
    background-color: var(--footer-bg);
    color: var(--footer-text);
    padding: 3rem 0 1rem;
    margin-top: 0px !important;
}

.footer h5 {
    color: var(--footer-text);
    font-weight: 600;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.footer a {
    color: var(--footer-links);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer a:hover {
    color: var(--link-hover-color);
}

.footer .list-unstyled li {
    margin-bottom: 0.5rem;
}

.footer-divider {
    border-color: rgba(255, 255, 255, 0.2);
    margin: 2rem 0 1rem;
}

.footer-bottom {
    padding-top: 1rem;
}

.footer .contact-details p {
    margin-bottom: 1rem;
}

.footer .company-info p {
    margin-bottom: 0.5rem;
}

.footer .legal-notice {
    font-size: 0.9rem;
}

.footer .disclaimer {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.8);
}

/* Icons */
.fas, .far {
    color: var(--icon-color);
}

.text-white .fas,
.text-white .far,
.hero-content .fas,
.hero-content .far,
.section-primary .fas,
.section-primary .far {
    color: white;
}

/* Responsive Design */
@media (max-width: 768px) {
    .contact-info {
        text-align: center !important;
        margin-top: 1rem;
    }
    
    .mega-menu {
        width: 95vw !important;
        padding: 1rem !important;
    }
    
    .mega-menu .col-lg-3 {
        margin-bottom: 2rem;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .section {
        padding: 2rem 0;
    }
    
    .tiles-container {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .footer .col-lg-2,
    .footer .col-lg-3 {
        margin-bottom: 2rem;
    }
}

@media (max-width: 576px) {
    .hero-content {
        padding: 1rem;
    }
    
    .hero-content h1 {
        font-size: 1.75rem;
    }
    
    .hero-content .lead {
        font-size: 1rem;
    }
    
    .btn-lg {
        padding: 0.5rem 1.5rem;
        font-size: 1rem;
    }
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.mb-4 {
    margin-bottom: 1.5rem;
}

.mb-5 {
    margin-bottom: 3rem;
}

.mt-4 {
    margin-top: 1.5rem;
}

.shadow {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.rounded {
    border-radius: 0.375rem;
}

/* Image Optimization */
img {
    max-width: 100%;
    height: auto;
}

.img-fluid {
    max-width: 100%;
    height: auto;
}

/* Loading States */
.loaded {
    opacity: 1;
    transition: opacity 0.3s ease;
}

/* Print Styles */
@media print {
    .top-bar,
    .top-menu,
    .breadcrumb-nav,
    .footer,
    .btn {
        display: none !important;
    }
    
    .hero-section {
        background: none !important;
        color: black !important;
    }
    
    .hero-content {
        color: black !important;
    }
}