/* ========== COLOR PALETTE (from logo) ========== */
:root {
    --primary-blue: #1a73b5;
    --primary-green: #28a867;
    --white: #ffffff;
    --light-bg: #f4f8fb;
    --dark-text: #222;
    --muted-text: #666;
    --border-color: #dee2e6;
}

/* ========== GLOBAL ========== */
* { box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--white);
    color: var(--dark-text);
    margin: 0;
    padding: 0;
}

/* ========== NAVBAR ========== */
.logo-img {
    height: 50px;
    width: auto;
}

.nav-link-custom {
    color: var(--primary-blue) !important;
    font-weight: 600;
    margin-left: 1.2rem;
    transition: color 0.2s;
}

.nav-link-custom:hover {
    color: var(--primary-green) !important;
}

/* ========== HERO ========== */
.hero-section {
    margin-top: 76px; /* navbar height offset */
    width: 100%;
}

.hero-img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
}

/* ========== SECTION TITLES ========== */
.section-title {
    color: var(--primary-blue);
    font-weight: 700;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--primary-green);
    margin: 10px auto 0;
    border-radius: 2px;
}

#order .section-title,
#contact .section-title,
#about .section-title {
    display: block;
}

/* ========== PRODUCT CARDS ========== */
.product-card {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    text-align: center;
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 30px rgba(26, 115, 181, 0.18);
}

.product-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.product-label {
    padding: 12px 8px;
    font-weight: 600;
    color: var(--primary-blue);
    font-size: 0.95rem;
}

/* ========== CUSTOM MODAL (80% overlay) ========== */
.custom-modal {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    overflow-y: auto;
}

.custom-modal-content {
    background: var(--white);
    width: 80%;
    max-width: 900px;
    max-height: 90vh;
    border-radius: 16px;
    position: relative;
    overflow-y: auto;
    padding: 40px 35px 30px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from { transform: translateY(-30px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.modal-close-btn {
    position: absolute;
    top: 12px; right: 18px;
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--muted-text);
    cursor: pointer;
    line-height: 1;
    z-index: 10;
    transition: color 0.2s;
}

.modal-close-btn:hover {
    color: #dc3545;
}

/* ========== MODAL FORM STYLES ========== */
.modal-service-title {
    color: var(--primary-blue);
    font-weight: 700;
    margin-bottom: 5px;
}

.modal-base-price {
    color: var(--primary-green);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.option-group {
    background: var(--light-bg);
    border-radius: 10px;
    padding: 15px 20px;
    margin-bottom: 12px;
    border-left: 4px solid var(--primary-blue);
}

.option-group label {
    font-weight: 500;
    color: var(--dark-text);
}

.sub-option-group {
    margin-left: 24px;
    padding: 10px 15px;
    background: #eef6ed;
    border-radius: 8px;
    margin-top: 8px;
    border-left: 3px solid var(--primary-green);
}

.price-tag {
    color: var(--primary-green);
    font-weight: 600;
    font-size: 0.9rem;
}

.total-price-bar {
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-green));
    color: white;
    padding: 15px 25px;
    border-radius: 10px;
    font-size: 1.3rem;
    font-weight: 700;
    text-align: center;
    margin: 20px 0;
    position: sticky;
    bottom: 0;
}

/* ========== CUSTOMER INFO FORM IN MODAL ========== */
.customer-info-section {
    border-top: 2px solid var(--border-color);
    padding-top: 20px;
    margin-top: 20px;
}

.customer-info-section h5 {
    color: var(--primary-blue);
    font-weight: 700;
}

.cutoff-notice {
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 8px;
    padding: 12px 16px;
    font-weight: 600;
    color: #856404;
    text-align: center;
    margin: 15px 0;
}

/* ========== BUTTONS ========== */
.btn-primary-custom {
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-green));
    border: none;
    color: white;
    padding: 12px 30px;
    font-weight: 600;
    border-radius: 8px;
    transition: opacity 0.2s, transform 0.2s;
}

.btn-primary-custom:hover {
    opacity: 0.9;
    transform: translateY(-1px);
    color: white;
}

.btn-submit-order {
    background: var(--primary-green);
    border: none;
    color: white;
    padding: 14px 40px;
    font-weight: 700;
    font-size: 1.1rem;
    border-radius: 10px;
    width: 100%;
    transition: background 0.2s;
}

.btn-submit-order:hover {
    background: #22955a;
    color: white;
}

/* ========== CONTACT SECTION ========== */
.bg-light-custom {
    background: var(--light-bg);
}

/* ========== ABOUT ========== */
.about-text {
    font-size: 1.1rem;
    color: var(--muted-text);
    line-height: 1.8;
}

/* ========== FOOTER ========== */
.footer-section {
    background: var(--primary-blue);
    color: white;
    padding: 25px 0;
}

.footer-link {
    color: var(--primary-green);
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-link:hover {
    color: #fff;
    text-decoration: underline;
}

/* ========== ALERT STYLES ========== */
.alert-success-custom {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    border-radius: 8px;
    padding: 12px 16px;
    text-align: center;
}

.alert-error-custom {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    border-radius: 8px;
    padding: 12px 16px;
    text-align: center;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
    .custom-modal-content {
        width: 95%;
        padding: 30px 20px 20px;
    }

    .product-img {
        height: 150px;
    }

    .hero-img {
        max-height: 40vh;
    }

    .logo-img {
        height: 38px;
    }
}

@media (max-width: 576px) {
    .product-img {
        height: 120px;
    }

    .total-price-bar {
        font-size: 1.1rem;
        padding: 12px 15px;
    }
}

/* ========== DESIGN SERVICE TABLE ========== */
.design-service-table {
    width: 100%;
    border-collapse: collapse;
}

.design-service-table tr {
    border-bottom: 1px solid var(--border-color);
    transition: background 0.15s;
}

.design-service-table tr:hover {
    background: var(--light-bg);
}

.design-service-table td {
    padding: 10px 12px;
    vertical-align: middle;
}

.design-service-table .service-name {
    font-weight: 500;
}

.design-service-table .service-price {
    color: var(--primary-green);
    font-weight: 600;
    white-space: nowrap;
}

.design-service-table input[type="number"] {
    width: 70px;
    text-align: center;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 4px 8px;
}
