/* การตั้งค่าพื้นฐาน */
    body {
        font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
        scroll-behavior: smooth;
    }

    /* ธีมสีดำพรีเมียม */
    .bg-black { background-color: #0a0a0a !important; }
    .bg-dark { background-color: #141414 !important; }

    /* Navbar styling for logo */
    .navbar {
        background-color: rgba(10, 10, 10, 0.95) !important;
        border-bottom: 1px solid rgba(255,255,255,0.05);
    }
    .navbar-logo {
        height: 40px; /* Adjust height as needed */
        width: auto;
    }
    .navbar-text a.btn-outline-secondary {
        border-color: rgba(255,255,255,0.3);
        color: #ddd;
    }
    .navbar-text a.btn-outline-secondary:hover {
        background-color: #ddd;
        color: #333;
    }

    /* Hero Section with Logo */
    .hero-section {
        height: 100vh;
        background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.9)), 
                    url('https://images.unsplash.com/photo-1542382156909-9ae37b3f56fd?auto=format&fit=crop&w=1920&q=80') center/cover no-repeat;
        background-attachment: fixed;
    }
    .hero-logo {
        height: 150px; /* Adjust height as needed */
        width: auto;
    }

    /* ปุ่ม Messenger และ Line */
    .btn-messenger { background-color: #0084ff; color: white; border: none; font-weight: bold; }
    .btn-messenger:hover { background-color: #006bce; color: white; }

    .btn-line { background-color: #00B900; color: white; border: none; font-weight: bold; }
    .btn-line:hover { background-color: #009900; color: white; }

    /* Gallery & Overlay */
    .gallery-grid .gallery-item {
        position: relative;
        overflow: hidden;
        border-radius: 8px;
        cursor: pointer;
    }
    .gallery-grid img {
        transition: transform 0.4s ease;
        height: 350px;
        object-fit: cover;
        filter: grayscale(30%);
    }
    .gallery-grid .gallery-item:hover img {
        transform: scale(1.05);
        filter: grayscale(0%);
    }
    .gallery-grid .gallery-overlay {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0,0,0,0.7);
        display: flex;
        align-items: center;
        justify-content: center;
        opacity: 0;
        transition: opacity 0.3s ease;
        color: white;
        font-size: 2rem;
    }
    .gallery-grid .gallery-item:hover .gallery-overlay {
        opacity: 1;
    }

    /* Booking Form Styling */
    .booking-form .form-control {
        background-color: #1a1a1a;
        border: 1px solid #333;
        color: #fff;
    }
    .booking-form .form-control:focus {
        background-color: #222;
        color: #fff;
        border-color: #555;
        box-shadow: none;
    }
    input:-webkit-autofill, textarea:-webkit-autofill {
        -webkit-box-shadow: 0 0 0 30px #1a1a1a inset !important;
        -webkit-text-fill-color: white !important;
    }

    .payment-box {
        background: rgba(255, 255, 255, 0.055);
        border: 1px solid rgba(255, 193, 7, 0.28);
        border-radius: 12px;
        padding: 18px;
    }

    .promptpay-card {
        width: 220px;
        flex: 0 0 220px;
        background: rgba(0, 0, 0, 0.35);
        border: 1px solid rgba(255, 255, 255, 0.12);
        border-radius: 10px;
        padding: 12px;
    }

    .promptpay-card img {
        width: 180px;
        height: 180px;
        object-fit: contain;
    }

    .booking-steps {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 10px;
    }

    .booking-step {
        display: flex;
        align-items: center;
        gap: 9px;
        min-height: 46px;
        padding: 9px 10px;
        background: rgba(255, 255, 255, 0.045);
        border: 1px solid rgba(255, 255, 255, 0.12);
        border-radius: 8px;
        color: #d8d0c3;
        font-size: 0.9rem;
    }

    .booking-step span {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 26px;
        height: 26px;
        flex: 0 0 26px;
        border-radius: 50%;
        background: rgba(201, 168, 103, 0.18);
        color: #f4c75b;
        font-weight: 900;
    }

    .booking-step.is-active {
        border-color: rgba(255, 193, 7, 0.42);
        background: linear-gradient(135deg, rgba(255, 193, 7, 0.14), rgba(67, 191, 165, 0.08));
        color: #fff;
    }

    .upload-preview {
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 8px;
        background: rgba(255, 255, 255, 0.05);
        border: 1px solid rgba(255, 255, 255, 0.14);
        border-radius: 8px;
    }

    .upload-preview img {
        width: 58px;
        height: 58px;
        border-radius: 6px;
        object-fit: cover;
        background: #fff;
    }

    .upload-preview-label {
        min-width: 0;
        color: #d8d0c3;
        font-size: 0.82rem;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .booking-review-modal {
        background: linear-gradient(135deg, rgba(18, 18, 18, 0.98), rgba(35, 26, 20, 0.98));
        color: #fff;
        border: 1px solid rgba(201, 168, 103, 0.32);
        border-radius: 10px;
        box-shadow: 0 20px 60px rgba(0, 0, 0, 0.65);
    }

    .review-item {
        height: 100%;
        padding: 12px 14px;
        background: rgba(255, 255, 255, 0.055);
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 8px;
    }

    .review-item span {
        display: block;
        color: #b8aa98;
        font-size: 0.82rem;
        margin-bottom: 5px;
    }

    .review-item strong {
        display: block;
        color: #fff8ec;
        font-size: 1rem;
        line-height: 1.35;
        overflow-wrap: anywhere;
    }

    .review-amount strong {
        color: #ffcf5a;
        font-size: 1.35rem;
    }

    .tattoo-price-section {
        background: transparent !important;
    }

    .guide-kicker {
        color: #c9a867;
        font-size: 0.85rem;
        font-weight: 800;
        letter-spacing: 0.08em;
        text-transform: uppercase;
    }

    .tattoo-price-list {
        display: grid;
        gap: 18px;
    }

    .tattoo-price-card {
        display: grid;
        grid-template-columns: 1fr auto;
        gap: 22px;
        align-items: end;
        background:
            linear-gradient(135deg, rgba(18, 18, 18, 0.98), rgba(37, 27, 20, 0.96)),
            radial-gradient(circle at top left, rgba(214, 67, 45, 0.16), transparent 36%) !important;
        color: #f7f2e8 !important;
        border: 1px solid rgba(201, 168, 103, 0.38) !important;
        border-radius: 8px;
        padding: 22px 24px;
        box-shadow: 0 14px 34px rgba(0, 0, 0, 0.42) !important;
    }

    .tattoo-price-card h3 {
        margin: 0 0 24px;
        color: #fff8ec !important;
        font-size: clamp(1.25rem, 3vw, 2rem);
        font-weight: 800;
        line-height: 1.3;
    }

    .tattoo-price-card h3 span {
        font-weight: 800;
        color: #fff8ec !important;
    }

    .price-time {
        display: flex;
        align-items: center;
        gap: 9px;
        color: #ded2bf !important;
        font-size: 1.12rem;
        font-weight: 600;
        margin-bottom: 22px;
    }

    .price-extra {
        display: none !important;
    }

    .price-plan {
        color: #56d0b8 !important;
        font-size: 1rem;
        font-weight: 700;
        line-height: 1.55;
        max-width: 720px;
    }

    .price-installment {
        color: #e6bf58 !important;
        font-size: 1rem;
        font-weight: 800;
        margin-top: 6px;
    }

    .price-card-action {
        min-width: 250px;
        text-align: right;
    }

    .price-old {
        color: #b8aa98 !important;
        font-size: 1.45rem;
        font-weight: 700;
        text-decoration: line-through;
        margin-right: 18px;
    }

    .price-new {
        color: #ff5a4f !important;
        font-size: clamp(2rem, 4vw, 2.8rem);
        font-weight: 900;
        white-space: nowrap;
        text-shadow: 0 2px 16px rgba(255, 79, 67, 0.2);
    }

    .price-buy-btn {
        background: #43bfa5 !important;
        border: 0;
        color: #fff !important;
        font-weight: 900;
        padding: 12px 28px;
        border-radius: 6px;
        margin-top: 26px;
        min-width: 170px;
    }

    .price-buy-btn:hover {
        background: #d34836 !important;
        color: #fff !important;
    }

    /* Map Link Button */
    .map-link-btn {
        transition: transform 0.2s ease;
    }
    .map-link-btn:hover {
        transform: scale(1.05);
    }

/* ===== Portfolio Image Zoom Preview ===== */
.gallery-zoom-img {
    cursor: zoom-in;
}

.gallery-zoom-img:hover {
    transform: scale(1.03);
    filter: grayscale(0%) brightness(1.05);
}

#imagePreviewModal {
    background: rgba(0, 0, 0, 0.88);
    z-index: 20000;
}

#imagePreviewModal .modal-backdrop {
    background: rgba(0, 0, 0, 0.9);
}

.image-preview-dialog {
    max-width: 95vw;
}

#previewImage {
    max-height: 90vh;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    animation: previewZoomIn 0.22s ease-out;
}

.image-preview-close {
    position: absolute;
    top: 12px;
    right: 18px;
    z-index: 10;
    background-color: rgba(0, 0, 0, 0.65);
    border-radius: 50%;
    padding: 12px;
    opacity: 1;
}

.image-preview-close:hover {
    opacity: 1;
    transform: scale(1.06);
}

@keyframes previewZoomIn {
    from {
        opacity: 0;
        transform: scale(0.96);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@media (max-width: 576px) {
    .booking-steps {
        grid-template-columns: repeat(2, 1fr);
    }

    .booking-step {
        font-size: 0.82rem;
    }

    .promptpay-card {
        width: 100%;
        flex-basis: auto;
    }

    .tattoo-price-card {
        grid-template-columns: 1fr;
        padding: 18px;
    }

    .price-card-action {
        min-width: 0;
        text-align: left;
    }

    .price-buy-btn {
        width: 100%;
        margin-top: 14px;
    }

    #imagePreviewModal .modal-body {
        padding: 10px !important;
    }

    #previewImage {
        max-height: 82vh !important;
        width: auto;
    }

    .image-preview-close {
        top: 8px;
        right: 10px;
    }
}


/* ===== Mobile Portfolio Image Fit Fix ===== */
/* แก้ให้ภาพผลงานบนมือถือ Android / iOS แสดงเต็มภาพ ไม่โดนครอป */
@media (max-width: 768px) {
    .gallery-grid .gallery-item {
        background: rgba(0, 0, 0, 0.75);
        padding: 8px !important;
        border-radius: 10px;
    }

    .gallery-grid .gallery-item img,
    .gallery-grid img.gallery-zoom-img {
        width: 100% !important;
        height: 260px !important;
        object-fit: contain !important;
        object-position: center center !important;
        background-color: #111 !important;
        border-radius: 8px;
    }

    .gallery-grid .gallery-item:hover img,
    .gallery-zoom-img:hover {
        transform: none !important;
    }
}

/* มือถือจอเล็กมาก */
@media (max-width: 420px) {
    .gallery-grid .gallery-item img,
    .gallery-grid img.gallery-zoom-img {
        height: 240px !important;
    }
}
