/* ==========================================================================
   WebmasterThailand.com — Standalone CSS Design System
   ========================================================================== */

:root {
    /* Design Tokens */
    --color-primary: #0A1628;
    --color-secondary: #00D4FF;
    --color-accent: #6C63FF;
    --color-cyan: #00D4FF;
    --color-success: #00E676;
    --color-danger: #FF5252;
    --color-warning: #FFB300;
    
    /* Backgrounds & Text */
    --bg-primary: #0A1628;
    --bg-secondary: #0D1F3C;
    --bg-tertiary: #0F254C;
    
    --text-primary: #E8ECF4;
    --text-secondary: #8892A4;
    --text-muted: #626D81;
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #00D4FF 0%, #6C63FF 100%);
    --gradient-bg: linear-gradient(135deg, #0A1628 0%, #0D1F3C 50%, #0A1628 100%);
    
    /* Borders & Cards */
    --card-bg: rgba(15, 37, 76, 0.45);
    --card-border: rgba(255, 255, 255, 0.08);
    --card-hover-border: rgba(0, 212, 255, 0.35);
    --card-hover-bg: rgba(15, 37, 76, 0.65);
    
    /* Fonts & Radii */
    --font-sans: 'Inter', 'Noto Sans Thai', sans-serif;
    --border-radius: 16px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* CSS resets and modern base settings */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 100%;
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.5;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Typography styles */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-sans);
    font-weight: 700;
    line-height: 1.25;
    color: var(--text-primary);
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

img, svg {
    max-width: 100%;
    height: auto;
    vertical-align: middle;
}

/* Helper Utilities */
.fw-light { font-weight: 300; }
.fw-normal { font-weight: 400; }
.fw-medium { font-weight: 500; }
.fw-semibold { font-weight: 600; }
.fw-bold { font-weight: 700; }
.fw-extrabold { font-weight: 800; }

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.uppercase { text-transform: uppercase; }

/* Hidden utility class */
.hidden {
    display: none !important;
}

/* Flex & Grid layouts */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }
.whitespace-nowrap { white-space: nowrap; }

.grid { display: grid; }
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
@media (min-width: 640px) {
    .sm\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .sm\:flex-row { flex-direction: row; }
}
@media (min-width: 768px) {
    .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .md\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
    .lg\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .lg\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .lg\:grid-cols-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
    .lg\:col-span-2 { grid-column: span 2 / span 2; }
    .lg\:flex { display: flex !important; }
    .lg\:hidden { display: none !important; }
}

.max-w-2xl { max-width: 42rem; }
.max-w-3xl { max-width: 48rem; }
.max-w-4xl { max-width: 56rem; }
.max-w-5xl { max-width: 64rem; }
.max-w-6xl { max-width: 72rem; }
.max-w-md { max-width: 28rem; }
.mx-auto { margin-left: auto; margin-right: auto; }

/* Spacing */
.p-4 { padding: 1rem; }
.p-5 { padding: 1.25rem; }
.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-12 { padding-top: 3rem; padding-bottom: 3rem; }
.py-16 { padding-top: 4rem; padding-bottom: 4rem; }
.py-20 { padding-top: 5rem; padding-bottom: 5rem; }
.py-24 { padding-top: 6rem; padding-bottom: 6rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-5 { padding-left: 1.25rem; padding-right: 1.25rem; }
.px-8 { padding-left: 2rem; padding-right: 2rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-12 { margin-bottom: 3rem; }
.mb-16 { margin-bottom: 4rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }
.mt-12 { margin-top: 3rem; }
.mt-auto { margin-top: auto; }
.space-y-1 > * + * { margin-top: 0.25rem; }
.space-y-2 > * + * { margin-top: 0.5rem; }
.space-y-3 > * + * { margin-top: 0.75rem; }
.space-y-4 > * + * { margin-top: 1rem; }
.space-y-6 > * + * { margin-top: 1.5rem; }
.space-y-8 > * + * { margin-top: 2rem; }
.space-x-2 > * + * { margin-left: 0.5rem; }

/* Buttons Components */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--border-radius);
    font-weight: 700;
    transition: var(--transition);
    cursor: pointer;
    border: none;
}
.btn:hover {
    transform: translateY(-2px);
}
.btn-primary {
    background: var(--gradient-primary);
    color: #FFFFFF;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.25);
}
.btn-primary:hover {
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
}
.btn-outline {
    background: transparent;
    border: 1px solid var(--card-border);
    color: var(--text-primary);
}
.btn-outline:hover {
    background: rgba(15, 23, 42, 0.04);
}

/* Cards & Glassmorphism */
.card {
    background-color: var(--bg-tertiary);
    border: 1px solid var(--card-border);
    border-radius: var(--border-radius);
    transition: var(--transition);
}
.glass-card {
    background-color: var(--card-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--card-border);
}
.card:hover, .glass-card:hover {
    border-color: var(--card-hover-border);
    background-color: var(--card-hover-bg);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.04);
}

/* Header & Drawer Navigation */
.site-header {
    background-color: rgba(10, 22, 40, 0.75);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--card-border);
}
.header-top-bar {
    background-color: rgba(10, 22, 40, 0.9);
    color: var(--text-secondary);
}
.primary-menu-list a {
    color: var(--text-secondary);
}
.primary-menu-list a:hover {
    color: var(--color-secondary);
}

.mobile-menu-drawer {
    background-color: var(--bg-secondary);
}
.mobile-menu-overlay {
    background-color: rgba(0, 0, 0, 0.6);
}

/* Form Styles */
input, select, textarea {
    width: 100%;
    background-color: rgba(255, 255, 255, 0.02);
    color: var(--text-primary);
    border: 1px solid var(--card-border);
    padding: 0.75rem 1rem;
    border-radius: 12px;
    font-family: var(--font-sans);
    font-size: 0.9em;
    transition: var(--transition);
}
select option {
    background-color: #0d1f3c;
    color: #e8ecf4;
}
input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--color-secondary);
    background-color: rgba(255, 255, 255, 0.05);
    box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.15);
}

/* Custom switch for pricing toggles */
.wmt-switch {
    background-color: rgba(255, 255, 255, 0.08);
}

/* Stepper Indicators */
.step-indicator .step-number {
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
    border: 1px solid var(--card-border);
}
.step-indicator.active .step-number {
    background: var(--gradient-primary);
    color: #FFFFFF;
    border-color: transparent;
}
.step-indicator.active {
    color: var(--color-secondary);
}

/* Bank Account cards */
.bg-white-5 {
    background-color: rgba(255, 255, 255, 0.03);
}

/* Status Badges */
.bg-yellow-10 { background-color: rgba(245, 158, 11, 0.1); border-color: rgba(245, 158, 11, 0.2); color: #FFB300; }
.bg-blue-10 { background-color: rgba(0, 212, 255, 0.1); border-color: rgba(0, 212, 255, 0.2); color: #00D4FF; }
.bg-success-10 { background-color: rgba(0, 230, 76, 0.1); border-color: rgba(0, 230, 76, 0.2); color: #00E676; }
.bg-danger-10 { background-color: rgba(255, 82, 82, 0.1); border-color: rgba(255, 82, 82, 0.2); color: #FF5252; }

/* Radio selection cards */
.radio-card input[type="radio"]:checked + span + span, 
.radio-card input[type="radio"]:checked ~ span {
    color: var(--color-secondary) !important;
}
.radio-card:has(input[type="radio"]:checked) {
    border-color: var(--color-secondary);
    background-color: rgba(0, 212, 255, 0.04);
    box-shadow: 0 4px 20px rgba(0, 212, 255, 0.1);
}

/* Float Animation */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-5px); }
    100% { transform: translateY(0px); }
}
.animate-float {
    animation: float 4s ease-in-out infinite;
}

/* Grid Patterns */
.bg-grid-pattern {
    background-size: 50px 50px;
    background-image: 
        linear-gradient(to right, rgba(0, 212, 255, 0.03) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(0, 212, 255, 0.03) 1px, transparent 1px);
}


/* Screen reader only utility to hide inputs but keep them functional */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* TLD Selector Custom Styles */
.tld-select-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(75px, 1fr));
    gap: 6px;
    margin-top: 8px;
}
.tld-select-label {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px 8px;
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    font-size: 10px;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
    user-select: none;
    text-align: center;
}
.tld-select-label:hover {
    border-color: var(--color-cyan);
    background-color: rgba(0, 212, 255, 0.05);
    color: var(--text-primary);
}
.tld-select-label input[type="checkbox"] {
    display: none;
}
.tld-select-label:has(input[type="checkbox"]:checked) {
    background: var(--gradient-primary);
    border-color: transparent;
    color: #FFFFFF;
    box-shadow: 0 2px 8px rgba(0, 212, 255, 0.2);
}
.tld-action-link {
    background: none;
    border: none;
    color: var(--color-cyan);
    cursor: pointer;
    font-weight: 600;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 4px;
    transition: var(--transition);
}
.tld-action-link:hover {
    color: var(--text-primary);
    background-color: rgba(0, 212, 255, 0.1);
}



/* ==========================================================================
   Typography & Color Utilities (Added for Premium Design System)
   ========================================================================== */

/* Font Size Utility Classes */
.text-3xs { font-size: 0.65rem; }
.text-2xs { font-size: 0.75rem; }
.text-xs  { font-size: 0.8rem; }
.text-sm  { font-size: 0.875rem; }
.text-base{ font-size: 1rem; }
.text-lg  { font-size: 1.125rem; }
.text-xl  { font-size: 1.25rem; }
.text-2xl { font-size: 1.5rem; }
.text-3xl { font-size: 1.875rem; }
.text-4xl { font-size: 2.25rem; }
.text-5xl { font-size: 3rem; }
.text-6xl { font-size: 3.75rem; }

/* Text Color Utility Classes */
.text-primary   { color: var(--text-primary); }
.text-secondary { color: var(--text-secondary); }
.text-muted     { color: var(--text-muted); }
.text-accent    { color: var(--color-accent); }
.text-success   { color: var(--color-success); }
.text-danger    { color: var(--color-danger); }
.text-warning   { color: var(--color-warning); }
.text-white     { color: #ffffff; }

/* Background Utility Classes */
.bg-primary   { background-color: var(--bg-primary); }
.bg-secondary { background-color: var(--bg-secondary); }
.bg-tertiary  { background-color: var(--bg-tertiary); }
.bg-white-3   { background-color: rgba(255, 255, 255, 0.03); }
.bg-white-5   { background-color: rgba(255, 255, 255, 0.05); }
.bg-white-10  { background-color: rgba(255, 255, 255, 0.1); }

/* Layout & Containers */
.container {
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: 1rem;
}
.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

/* Responsive Containers */
@media (min-width: 640px) {
    .container { max-width: 640px; }
}
@media (min-width: 768px) {
    .container { max-width: 768px; }
}
@media (min-width: 1024px) {
    .container { max-width: 1024px; }
}
@media (min-width: 1280px) {
    .container { max-width: 1200px; }
}

/* Responsive Card Padding & Spacing */
@media (max-width: 639px) {
    .card, .glass-card {
        padding: 1.25rem !important;
        border-radius: 16px !important;
    }
    form#standalone-order-form {
        padding: 1.25rem !important;
        border-radius: 20px !important;
    }
}

/* ==========================================================================
   Header Dropdown Menu and List Reset Styles
   ========================================================================== */

/* Standard layout defaults */
.list-none {
    list-style: none !important;
}
.p-0 {
    padding: 0 !important;
}
.m-0 {
    margin: 0 !important;
}
.font-medium {
    font-weight: 500;
}

/* Dropdown Menu Functionality */
.dropdown {
    position: relative;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background-color: var(--bg-secondary);
    border: 1px solid var(--card-border);
    border-radius: 14px;
    min-width: 230px;
    padding: 0.5rem 0;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.45);
    z-index: 1000;
}

.dropdown-menu li {
    width: 100%;
    display: block;
}

.dropdown-menu li a {
    display: block;
    padding: 0.75rem 1.25rem;
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 500;
    transition: var(--transition);
    border-bottom: 1px solid rgba(255, 255, 255, 0.02);
    text-align: left;
}

.dropdown-menu li:last-child a {
    border-bottom: none;
}

.dropdown-menu li a:hover {
    background-color: rgba(255, 255, 255, 0.03);
    color: var(--color-secondary);
    padding-left: 1.5rem;
}

.dropdown-menu::before {
    content: '';
    position: absolute;
    top: -15px; /* bridges the gap so hover is not lost */
    left: 0;
    width: 100%;
    height: 15px;
    background: transparent;
}

.dropdown:hover .dropdown-menu,
.dropdown.active .dropdown-menu {
    display: block;
    animation: fadeInSlide 0.25s ease-out forwards;
}

.dropdown:hover .dropdown-arrow,
.dropdown.active .dropdown-arrow {
    transform: rotate(180deg);
}

@keyframes fadeInSlide {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(8px);
    }
}

