:root {
    --primary-color: #ee2bbd;
    --background-light: #f8f6f7;
    --background-dark: #181116;
    --text-light: #f8f6f7;
    --text-dark: #181116;
    --text-muted-light: #6c757d;
    --text-muted-dark: #adb5bd;
}

/* Default Language State - Hide English by default */
.lang-en {
    display: none;
}

.dark {
    --background-light: #181116;
    --background-dark: #f8f6f7;
    --text-light: #181116;
    --text-dark: #f8f6f7;
    --text-muted-light: #adb5bd;
    --text-muted-dark: #6c757d;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: var(--background-light);
    color: var(--text-dark);
}

.dark body {
    background-color: var(--background-dark);
    color: var(--text-light);
}.bg-primary {
    background-color: var(--primary-color) !important;
}

.text-primary {
    color: var(--primary-color) !important;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    border-radius: 9999px;
    padding: 0.75rem 1.5rem;
    font-weight: bold;
    color: white;
}

.btn-primary:hover {
    opacity: 0.9;
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.form-control {
    border-radius: 0.75rem;
    background-color: #fff;
    border: 1px solid #ced4da;
    padding: 0.75rem;
    color: #212529;
}

.dark .form-control {
    background-color: #f8f9fa;
    border-color: #adb5bd;
    color: #212529;
}

/* Form Floating Labels */
.form-floating {
    position: relative;
}

.form-floating>.form-control {
    height: calc(3.5rem + 2px);
    line-height: 1.25;
    padding: 1.625rem 0.75rem 0.625rem;
}

.form-floating>textarea.form-control {
    height: 100px;
    padding-top: 1.625rem;
}

.form-floating>label {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    padding: 1rem 0.75rem;
    pointer-events: none;
    border: 1px solid transparent;
    transform-origin: 0 0;
    transition: opacity .1s ease-in-out, transform .1s ease-in-out;
    color: #6c757d;
}

.dark .form-floating>label {
    color: #495057;
}

/* Float the label up when field has focus or content */
.form-floating>.form-control:focus ~ label,
.form-floating>.form-control:not(:placeholder-shown) ~ label {
    opacity: 0.65;
    transform: scale(0.85) translateY(-0.5rem) translateX(0.15rem);
}

.form-floating>.form-control:focus ~ label {
    opacity: 1;
    color: var(--primary-color);
}

/* Select dropdown needs special handling */
.form-floating>select.form-control {
    padding-top: 1.625rem;
    padding-bottom: 0.625rem;
}

.form-floating>select.form-control ~ label {
    opacity: 0.65;
    transform: scale(0.85) translateY(-0.5rem) translateX(0.15rem);
}

.form-floating>select.form-control:focus ~ label {
    opacity: 1;
    color: var(--primary-color);
}

.form-control::placeholder {
    color: #6c757d;
    opacity: 1;
}

.dark .form-control::placeholder {
    color: #495057;
    opacity: 1;
}

/* When focused or filled */
.form-control:focus,
.form-control:not(:placeholder-shown) {
    background-color: #fff;
    border-color: var(--primary-color);
    outline: 0;
}

.dark .form-control:focus,
.dark .form-control:not(:placeholder-shown) {
    background-color: #fff;
    border-color: var(--primary-color);
    color: #212529;
}

.rounded-xl {
    border-radius: 1rem;
}

.rounded-lg {
    border-radius: 0.75rem;
}

.rounded-full {
    border-radius: 9999px;
}

.font-display {
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.items-center {
    align-items: center;
}

.justify-center {
    justify-content: center;
}

.justify-between {
    justify-content: space-between;
}

.justify-end {
    justify-content: flex-end;
}

.flex {
    display: flex;
}

.min-h-\[60vh\] {
    min-height: 60vh;
}

.flex-col {
    flex-direction: column;
}

.gap-6 {
    gap: 1.5rem;
}

.gap-4 {
    gap: 1rem;
}

.gap-3 {
    gap: 0.75rem;
}

.gap-2 {
    gap: 0.5rem;
}

.gap-1 {
    gap: 0.25rem;
}

.bg-cover {
    background-size: cover;
}

.bg-center {
    background-position: center;
}

.bg-no-repeat {
    background-repeat: no-repeat;
}

.p-4 {
    padding: 1rem;
}

.p-3 {
    padding: 0.75rem;
}

.p-2 {
    padding: 0.5rem;
}

.px-4 {
    padding-left: 1rem;
    padding-right: 1rem;
}

.px-6 {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.px-2 {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
}

.py-2 {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

.py-3 {
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
}

.py-6 {
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
}

.py-8 {
    padding-top: 2rem;
    padding-bottom: 2rem;
}

.py-12 {
    padding-top: 3rem;
    padding-bottom: 3rem;
}

.pb-3 {
    padding-bottom: 0.75rem;
}

.pt-5 {
    padding-top: 1.25rem;
}

.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;
}

.mt-2 {
    margin-top: 0.5rem;
}

.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-white {
    color: #fff;
}

.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-sm {
    font-size: 0.875rem;
}

.text-xs {
    font-size: 0.75rem;
}

.text-base {
    font-size: 1rem;
}

.font-bold {
    font-weight: 700;
}

.font-black {
    font-weight: 900;
}

.font-normal {
    font-weight: 400;
}

.font-medium {
    font-weight: 500;
}

.leading-tight {
    line-height: 1.25;
}

.leading-normal {
    line-height: 1.5;
}

.leading-relaxed {
    line-height: 1.625;
}

.tracking-wider {
    letter-spacing: 0.05em;
}

.tracking-\[-0\.033em\] {
    letter-spacing: -0.033em;
}

.tracking-\[-0\.015em\] {
    letter-spacing: -0.015em;
}

.tracking-\[0\.015em\] {
    letter-spacing: 0.015em;
}

.text-white\/90 {
    color: rgba(255, 255, 255, 0.9);
}

.max-w-md {
    max-width: 28rem;
}

.max-w-xl {
    max-width: 36rem;
}

.max-w-4xl {
    max-width: 56rem;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

.h-12 {
    height: 3rem;
}

.flex-1 {
    flex: 1 1 0%;
}

.bg-gray-200 {
    background-color: #e5e7eb;
}

.bg-gray-100 {
    background-color: #f3f4f6;
}

.p-1\.5 {
    padding: 0.375rem;
}

.cursor-pointer {
    cursor: pointer;
}

.grow {
    flex-grow: 1;
}

.overflow-hidden {
    overflow: hidden;
}

.truncate {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.invisible {
    visibility: hidden;
}

.w-0 {
    width: 0;
}

.w-full {
    width: 100%;
}

.w-100 {
    width: 100%;
}

.h-auto {
    height: auto;
}

.grid {
    display: grid;
}

.grid-cols-1 {
    grid-template-columns: repeat(1, minmax(0, 1fr));
}

.grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.border {
    border-width: 1px;
}

.border-b {
    border-bottom-width: 1px;
}

.border-black\/10 {
    border-color: rgba(0, 0, 0, 0.1);
}

.border-black\/5 {
    border-color: rgba(0, 0, 0, 0.05);
}

.border-white\/10 {
    border-color: rgba(255, 255, 255, 0.1);
}

.border-white\/5 {
    border-color: rgba(255, 255, 255, 0.05);
}

.border-primary\/20 {
    border-color: rgba(238, 43, 189, 0.2);
}

.border-primary\/30 {
    border-color: rgba(238, 43, 189, 0.3);
}

.bg-white\/50 {
    background-color: rgba(255, 255, 255, 0.5);
}

.bg-white {
    background-color: #fff;
}

.bg-black\/10 {
    background-color: rgba(0, 0, 0, 0.1);
}

.bg-black\/20 {
    background-color: rgba(0, 0, 0, 0.2);
}

.bg-black\/30 {
    background-color: rgba(0, 0, 0, 0.3);
}

.bg-black\/5 {
    background-color: rgba(0, 0, 0, 0.05);
}

.aspect-square {
    aspect-ratio: 1 / 1;
}

.object-cover {
    object-fit: cover;
}

.text-gray-900 {
    color: #111827;
}

.text-gray-800 {
    color: #1f2937;
}

.text-gray-700 {
    color: #374151;
}

.text-gray-600 {
    color: #4b5563;
}

.text-gray-500 {
    color: #6b7280;
}

.text-gray-400 {
    color: #9ca3af;
}

.text-gray-300 {
    color: #d1d5db;
}

.space-y-4>:not([hidden])~:not([hidden]) {
    --tw-space-y-reverse: 0;
    margin-bottom: calc(1rem * var(--tw-space-y-reverse));
    margin-top: calc(1rem * (1 - var(--tw-space-y-reverse)));
}

.space-x-6>:not([hidden])~:not([hidden]) {
    --tw-space-x-reverse: 0;
    margin-left: calc(1.5rem * (1 - var(--tw-space-x-reverse)));
    margin-right: calc(1.5rem * var(--tw-space-x-reverse));
}

.transition {
    transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}

.transition-all {
    transition-property: all;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}

.transition-colors {
    transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}

.hover\:opacity-90:hover {
    opacity: 0.9;
}

.hover\:text-primary:hover {
    color: var(--primary-color);
}

.hover\:bg-black\/5:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

/* Dark Mode Specific Styles */
.dark .bg-white\/5 {
    background-color: rgba(255, 255, 255, 0.05);
}

.dark .bg-white\/10 {
    background-color: rgba(255, 255, 255, 0.1);
}

.dark .bg-black\/20 {
    background-color: rgba(0, 0, 0, 0.2);
}

.dark .bg-black\/30 {
    background-color: rgba(0, 0, 0, 0.3);
}

.dark .border-white\/10 {
    border-color: rgba(255, 255, 255, 0.1);
}

.dark .border-white\/5 {
    border-color: rgba(255, 255, 255, 0.05);
}

.dark .text-white {
    color: #fff;
}

.dark .text-gray-400 {
    color: #9ca3af;
}

.dark .text-gray-300 {
    color: #d1d5db;
}

.dark .text-gray-500 {
    color: #6b7280;
}

.dark .hover\:bg-white\/10:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.dark .bg-background-dark\/80 {
    background-color: rgba(24, 17, 22, 0.8);
}

/* Header Styles */
.sticky {
    position: sticky;
}

.top-0 {
    top: 0;
}

.z-50 {
    z-index: 50;
}

.bg-background-light\/80 {
    background-color: rgba(248, 246, 247, 0.8);
}

.backdrop-blur-sm {
    backdrop-filter: blur(4px);
}

.shrink-0 {
    flex-shrink: 0;
}

.size-10 {
    height: 2.5rem;
    width: 2.5rem;
}

/* Language Switcher Styles */
.language-switcher {
    position: relative;
}

.language-menu {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 0.5rem;
    background-color: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    min-width: 120px;
    z-index: 1000;
}

.dark .language-menu {
    background-color: #1f2937;
    border-color: #374151;
}

.lang-option {
    display: block;
    padding: 0.75rem 1rem;
    color: #4b5563;
    text-decoration: none;
    transition: background-color 0.15s ease;
}

.dark .lang-option {
    color: #9ca3af;
}

.lang-option:hover {
    background-color: #f3f4f6;
    color: var(--primary-color);
}

.dark .lang-option:hover {
    background-color: #374151;
    color: var(--primary-color);
}

.lang-option:first-child {
    border-top-left-radius: 0.5rem;
    border-top-right-radius: 0.5rem;
}

.lang-option:last-child {
    border-bottom-left-radius: 0.5rem;
    border-bottom-right-radius: 0.5rem;
}

/* Mobile Menu Toggle - Hidden on large screens */
.mobile-menu-toggle {
    display: flex;
}

/* Service Type Radio Button Styles */
.service-radio-group {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    width: 100%;
    height: auto;
    border-radius: 1rem;
    background-color: rgba(0, 0, 0, 0.05);
    padding: 0.5rem;
    border: 2px solid rgba(0, 0, 0, 0.1);
    gap: 0.5rem;
}

.dark .service-radio-group {
    background-color: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.15);
}

.service-radio-label {
    display: flex;
    cursor: pointer;
    height: 3rem;
    width: 100%;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 0.5rem;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
    color: #6b7280;
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1.2;
    text-align: center;
    transition-property: all;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 200ms;
}

.dark .service-radio-label {
    color: #9ca3af;
}

.service-radio-label:hover {
    background-color: rgba(238, 43, 189, 0.1);
    color: var(--primary-color);
}

.service-radio-label:has(:checked) {
    background-color: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    color: #111827;
    font-weight: 700;
}

.dark .service-radio-label:has(:checked) {
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 8px rgba(255, 255, 255, 0.2);
    color: #111827;
}

.service-radio-label .truncate {
    overflow: visible;
    text-overflow: clip;
    white-space: normal;
    word-break: break-word;
}

.service-radio-label input[type="radio"] {
    visibility: hidden;
    width: 0;
}

/* Responsive adjustments for service tabs */
@media (min-width: 640px) {
    .service-radio-group {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .service-radio-label {
        font-size: 0.875rem;
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }
}

@media (min-width: 1024px) {
    .service-radio-group {
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        height: 3rem;
        border-radius: 9999px;
        padding: 0.25rem;
        gap: 0;
    }
    
    .service-radio-label {
        height: 100%;
        width: auto;
        flex: 1 1 0%;
        border-radius: 9999px;
        white-space: nowrap;
    }
    
    .service-radio-label .truncate {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
}

/* Gallery Content Transitions */
.gallery-content {
    animation: fadeIn 0.4s ease-in-out;
}

.service-content {
    animation: fadeIn 0.4s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Gradient Backgrounds */
.bg-gradient-to-r {
    background-image: linear-gradient(to right, var(--tw-gradient-stops));
}

.from-primary\/10 {
    --tw-gradient-from: rgba(238, 43, 189, 0.05);
    --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(238, 43, 189, 0));
}

.to-primary\/5 {
    --tw-gradient-to: rgba(238, 43, 189, 0.02);
}

.gap-2 {
    gap: 0.5rem;
}

/* Update service box spacing */
.service-content .grid {
    gap: 0.5rem;
}

.service-content .max-w-4xl {
    margin-bottom: 1.5rem;
}

/* Container */
.container {
    width: 100%;
    margin-left: auto;
    margin-right: auto;
}

.container-fluid {
    width: 100%;
    padding-right: 15px;
    padding-left: 15px;
    margin-right: auto;
    margin-left: auto;
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin-right: -15px;
    margin-left: -15px;
}

.col-12 {
    flex: 0 0 100%;
    max-width: 100%;
    position: relative;
    width: 100%;
    padding-right: 15px;
    padding-left: 15px;
}

.p-0 {
    padding: 0;
}

.relative {
    position: relative;
}

/* Responsive Breakpoints */
@media (min-width: 480px) {
    .\@\[480px\]\:p-4 {
        padding: 1rem;
    }
    .\@\[480px\]\:gap-8 {
        gap: 2rem;
    }
    .\@\[480px\]\:rounded-xl {
        border-radius: 1rem;
    }
    .\@\[480px\]\:text-5xl {
        font-size: 3rem;
    }
    .\@\[480px\]\:font-black {
        font-weight: 900;
    }
    .\@\[480px\]\:leading-tight {
        line-height: 1.25;
    }
    .\@\[480px\]\:tracking-\[-0\.033em\] {
        letter-spacing: -0.033em;
    }
    .\@\[480px\]\:text-base {
        font-size: 1rem;
    }
    .\@\[480px\]\:font-normal {
        font-weight: 400;
    }
    .\@\[480px\]\:leading-normal {
        line-height: 1.5;
    }
}

@media (min-width: 640px) {
    .sm\:grid-cols-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .sm\:text-5xl {
        font-size: 3rem;
    }
    .sm\:font-black {
        font-weight: 900;
    }
    .sm\:leading-tight {
        line-height: 1.25;
    }
    .sm\:tracking-\[-0\.033em\] {
        letter-spacing: -0.033em;
    }
    .sm\:text-base {
        font-size: 1rem;
    }
    .sm\:font-normal {
        font-weight: 400;
    }
    .sm\:leading-normal {
        line-height: 1.5;
    }
}

@media (min-width: 768px) {
    .mobile-menu-toggle {
        display: none;
    }
    .md\:grid-cols-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .md\:grid-cols-4 {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
    .md\:text-3xl {
        font-size: 1.875rem;
    }
}

/* Social Icons */
.social-icon img {
    width: 32px;
    height: 32px;
    object-fit: contain;
    transition: transform 0.2s ease;
}

.social-icon {
    display: inline-block;
    margin: 0 0.5rem;
}

.social-icon:hover img {
    transform: scale(1.1);
}

/* Additional utility classes */
.italic {
    font-style: italic;
}

.block {
    display: block;
}

.inline-block {
    display: inline-block;
}

.h-24 {
    height: 6rem;
}

.pt-2 {
    padding-top: 0.5rem;
}

/* Language visibility - inline-block for proper display */
.lang-en,
.lang-th {
    display: inline-block;
}

/* Select dropdown styling */
select.form-control {
    appearance: auto;
    cursor: pointer;
}

select.form-control option {
    background-color: #fff;
    color: #212529;
}

.dark select.form-control option {
    background-color: #fff;
    color: #212529;
}

/* Textarea specific */
textarea.form-control {
    resize: vertical;
    min-height: 100px;
}

/* Date input specific styling */
input[type="date"].form-control {
    position: relative;
    padding-top: 1.5rem;
    padding-bottom: 0.5rem;
}

input[type="date"].form-control::-webkit-calendar-picker-indicator {
    cursor: pointer;
}

/* Fix for date input label */
.form-floating > input[type="date"] ~ label {
    padding-top: 0.5rem;
}

.form-floating > input[type="date"]:focus ~ label,
.form-floating > input[type="date"]:not(:placeholder-shown) ~ label {
    opacity: 0.65;
    transform: scale(0.85) translateY(-0.5rem) translateX(0.15rem);
}

/* Force label to always be in floating position for date inputs */
.form-floating > input[type="date"] ~ label {
    opacity: 0.65;
    transform: scale(0.85) translateY(-0.5rem) translateX(0.15rem);
}

.form-floating > input[type="date"]:focus ~ label {
    opacity: 1;
    color: var(--primary-color);
}

/* CRITICAL: Make placeholder completely invisible */
.form-control::-webkit-input-placeholder {
    color: transparent !important;
}

.form-control::-moz-placeholder {
    color: transparent !important;
}

.form-control:-ms-input-placeholder {
    color: transparent !important;
}

.form-control::placeholder {
    color: transparent !important;
}

/* Ensure proper padding for input text */
.form-floating > input.form-control {
    padding: 1.625rem 0.75rem 0.625rem !important;
}

.form-floating > textarea.form-control {
    padding-top: 1.625rem !important;
}
