/* 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;
}

/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

/* 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 #e9ecef;
}

.logo-container {
    display: flex;
    align-items: center;
}

.logo {
    max-width: 300px;
    max-height: 120px;
    width: auto;
    height: auto;
}

.logo-link {
    display: inline-block;
}

.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 Bar Right Section */
.top-bar-right {
    gap: 1.5rem;
}

/* Language Switcher */
.language-switcher {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-left: 1rem;
    padding-left: 1rem;
    border-left: 1px solid #e9ecef;
}

.lang-link {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    text-decoration: none;
    color: #666;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.lang-link:hover {
    background-color: #f8f9fa;
    color: var(--text-primary-color);
    text-decoration: none;
    transform: translateY(-1px);
}

.lang-link.active {
    background-color: var(--text-primary-color);
    color: #fff;
    border-color: var(--text-primary-color);
}

.lang-link.active:hover {
    background-color: var(--text-primary-color);
    color: #fff;
    transform: none;
}

.flag-icon {
    width: 20px;
    height: auto;
    border-radius: 2px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.lang-code {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* 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.5rem;
    transition: all 0.3s ease;
}

.top-menu .navbar-nav .nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
    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-menu {
    position: fixed;
    left: 50%;
    transform: translateX(-50%);
    width: 90vw;
    max-width: 1140px;
    background-color: #fff;
    border: none;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    padding: 2rem;
    margin-top: 0;
}

.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.75rem 0;
    color: #333;
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.3s ease;
}

.mega-menu .dropdown-item:hover {
    background-color: #f8f9fa;
    color: var(--text-primary-color);
    padding-left: 1rem;
}

.mega-menu .dropdown-item i {
    color: var(--icon-color);
    width: 20px;
}

/* 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 1.5rem;
    border-radius: 25px;
    transition: all 0.3s ease;
}

.btn-apply:hover {
    background-color: #076b47;
    border-color: #076b47;
    color: var(--button-text-color);
    transform: translateY(-2px);
}

.btn-primary {
    background-color: var(--button-bg-color);
    border-color: var(--button-bg-color);
    color: var(--button-text-color);
}

.btn-primary:hover {
    background-color: #076b47;
    border-color: #076b47;
}

.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: #fff;
}

/* Pulse Animation */
.pulse-button {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(9, 137, 87, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(9, 137, 87, 0);
    }
    100% {
        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: 500px;
    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: #fff;
    max-width: 800px;
    padding: 2rem;
    min-width: 1000px;
}

.hero-content h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    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);
}

/* 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: 1rem;
    }
}

/* Sections */
.section {
    padding: 4rem 0;
}

.section-primary {
    background-color: var(--text-primary-color);
    color: #fff;
}

.section.bg-light {
    background-color: #f8f9fa;
}

/* Breadcrumbs */
.breadcrumbs-section {
    background-color: #f8f9fa;
    padding: 1rem 0;
    border-bottom: 1px solid #e9ecef;
}

.breadcrumb {
    background-color: transparent;
    margin-bottom: 0;
}

.breadcrumb-item a {
    color: var(--link-color);
}

.breadcrumb-item.active {
    color: #6c757d;
}

/* Cards */
.card-header {
    background-color: var(--card-header-bg) !important;
    color: color-contrast(var(--card-header-bg)) !important;
    border-bottom: none;
}

/* Accordion */
.accordion-item {
    border: 1px solid #e9ecef;
    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: #fff;
}

/* Lists */
.list-numbered {
    counter-reset: item;
    padding-left: 0;
}

.list-numbered li {
    display: block;
    margin-bottom: 1rem;
    padding-left: 3rem;
    position: relative;
    counter-increment: item;
}

.list-numbered li::before {
    content: counter(item);
    position: absolute;
    left: 0;
    top: 0;
    background-color: var(--button-bg-color);
    color: #fff;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.9rem;
}

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;
    position: absolute;
    left: 0;
    color: var(--button-bg-color);
}

/* Tiles/Cards */
.tiles-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.tile {
    background: #fff;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #e9ecef;
}

.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;
}

.tile p {
    color: #666;
    margin-bottom: 1.5rem;
}

/* Footer */
.footer {
    background-color: var(--footer-bg);
    color: var(--footer-text);
    padding: 3rem 0 1rem;
    margin-top: 0px !important;
}

.footer-logo-img {
    max-width: 200px;
    max-height: 80px;
    filter: brightness(0) invert(1);
}

.footer-title {
    color: var(--footer-text);
    font-weight: 600;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: var(--footer-links);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--link-hover-color);
}

.footer-text {
    color: var(--footer-text);
    margin-bottom: 1rem;
}

.footer-contact .contact-item {
    color: var(--footer-text);
    margin-bottom: 0.5rem;
}

.footer-contact .contact-item i {
    color: var(--link-hover-color);
}

.footer-legal {
    font-size: 0.9rem;
}

.disclaimer {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 1rem;
    border-radius: 6px;
    margin-bottom: 1rem;
}

.cookies-info {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.8);
}

.company-info {
    font-size: 0.9rem;
}

.company-info h6 {
    color: var(--link-hover-color);
    font-weight: 600;
}

.footer-divider {
    border-color: rgba(255, 255, 255, 0.2);
    margin: 2rem 0 1rem;
}

.footer-bottom {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

.footer-bottom a {
    color: var(--link-hover-color);
}

/* Responsive Design */
@media (max-width: 768px) {
    .contact-info {
        text-align: center;
        margin-top: 1rem;
    }
    
    /* Language Switcher Mobile */
    .top-bar-right {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .language-switcher {
        margin-left: 0;
        padding-left: 0;
        border-left: none;
        border-top: 1px solid #e9ecef;
        padding-top: 0.75rem;
        justify-content: center;
    }
    
    .lang-link {
        padding: 0.375rem 0.75rem;
    }
    
    .flag-icon {
        width: 18px;
    }
    
    .lang-code {
        font-size: 0.7rem;
    }
    
    .mega-menu {
        width: 95vw;
        padding: 1rem;
    }
    
    .tiles-container {
        grid-template-columns: 1fr;
    }
    
    .hero-content {
        padding: 1rem;
    }
    
    .section {
        padding: 2rem 0;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
}

@media (max-width: 576px) {
    .hero-content h1 {
        font-size: 1.75rem;
    }
    
    .hero-content .lead {
        font-size: 1rem;
    }
    
    .btn-lg {
        padding: 0.5rem 1rem;
        font-size: 1rem;
    }
    
    /* Language Switcher Extra Small Screens */
    .top-bar-right {
        gap: 0.75rem;
    }
    
    .language-switcher {
        gap: 0.25rem;
        padding-top: 0.5rem;
    }
    
    .lang-link {
        padding: 0.25rem 0.5rem;
        min-width: 50px;
        justify-content: center;
    }
    
    .flag-icon {
        width: 16px;
    }
    
    .lang-code {
        font-size: 0.65rem;
    }
    
    .contact-info {
        font-size: 0.8rem;
    }
    
    .contact-item {
        font-size: 0.75rem;
    }
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.mb-0 { margin-bottom: 0 !important; }
.mb-1 { margin-bottom: 0.25rem !important; }
.mb-2 { margin-bottom: 0.5rem !important; }
.mb-3 { margin-bottom: 1rem !important; }
.mb-4 { margin-bottom: 1.5rem !important; }
.mb-5 { margin-bottom: 3rem !important; }

.mt-0 { margin-top: 0 !important; }
.mt-1 { margin-top: 0.25rem !important; }
.mt-2 { margin-top: 0.5rem !important; }
.mt-3 { margin-top: 1rem !important; }
.mt-4 { margin-top: 1.5rem !important; }
.mt-5 { margin-top: 3rem !important; }

/* Image Styles */
.img-fluid {
    max-width: 100%;
    height: auto;
}

.rounded {
    border-radius: 0.375rem;
}

.shadow {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

/* Loading States */
.loaded {
    opacity: 1;
    transition: opacity 0.3s ease;
}

/* Print Styles */
@media print {
    .top-bar,
    .top-menu,
    .breadcrumbs-section,
    .footer,
    .btn,
    .pulse-button {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
    }
    
    h1, h2, h3, h4, h5, h6 {
        page-break-after: avoid;
    }
}