/* Sembunyikan judul halaman default WordPress pada halaman form Inquiry / PO */
body:has(.indah-po-container) .wp-block-post-title,
body:has(.indah-po-container) .entry-title,
body:has(.indah-po-container) h1.page-title,
body:has(.po-preview-wrapper) .wp-block-post-title,
body:has(.po-preview-wrapper) .entry-title,
body:has(.po-preview-wrapper) h1.page-title,
.page-id-8 .wp-block-post-title,
.page-id-8 .entry-title,
.page-id-8 h1.page-title {
    display: none !important;
}

.indah-po-container {
    max-width: 800px;
    margin: 0 auto;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: #1e293b;
    padding: 10px 0;
}

.indah-po-form {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    padding: 30px;
}

.indah-po-form h2 {
    margin-top: 0;
    margin-bottom: 25px;
    font-size: 24px;
    font-weight: 700;
    color: #0f172a;
}

.po-form-section {
    margin-bottom: 30px;
    padding-bottom: 25px;
    border-bottom: 1px solid #f1f5f9;
}
.po-form-section:last-of-type {
    border-bottom: none;
    margin-bottom: 15px;
    padding-bottom: 0;
}

.po-form-section h3 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 16px;
    font-weight: 600;
    color: #334155;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.indah-po-form .form-group {
    margin-bottom: 18px;
}
.indah-po-form .form-group.row {
    display: flex;
    gap: 20px;
}
.indah-po-form .form-group.row .col {
    flex: 1;
}

.indah-po-form label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    font-size: 14px;
    color: #475569;
}

.indah-po-form input[type="text"], 
.indah-po-form input[type="number"], 
.indah-po-form select, 
.indah-po-form textarea {
    width: 100%;
    padding: 12px 14px;
    background-color: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    box-sizing: border-box;
    font-family: inherit;
    font-size: 14px;
    color: #1e293b;
    transition: all 0.2s ease;
}
.indah-po-form input:focus, 
.indah-po-form select:focus, 
.indah-po-form textarea:focus {
    outline: none;
    border-color: #3b82f6;
    background-color: #ffffff;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.addon-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.addon-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    transition: all 0.2s ease;
}
.addon-item:hover {
    border-color: #cbd5e1;
    box-shadow: 0 2px 5px rgba(0,0,0,0.03);
}
.addon-checkbox-wrap {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}
.addon-checkbox-wrap input[type="checkbox"] {
    margin-top: 3px;
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: #2563eb;
}
.addon-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
}
.addon-info .addon-title {
    margin: 0;
    font-weight: 600;
    font-size: 15px;
    color: #1e293b;
    cursor: pointer;
}
.addon-info .addon-price {
    font-size: 13px;
    color: #64748b;
}
.addon-qty-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #f8fafc;
    padding: 8px 14px;
    border-radius: 6px;
    border: 1px solid #f1f5f9;
}
.addon-qty-wrap label {
    margin: 0;
    font-size: 13px;
    color: #64748b;
    font-weight: 600;
}
.addon-item input[type="number"].addon-qty {
    width: 70px;
    padding: 8px 10px;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    text-align: center;
    font-size: 14px;
    background: #ffffff;
}
.addon-item input[type="number"].addon-qty:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.15);
}

.btn-primary {
    background-color: #2563eb;
    color: white;
    padding: 14px 24px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    width: 100%;
    transition: background-color 0.2s, transform 0.1s;
    box-shadow: 0 4px 6px -1px rgba(37, 99, 235, 0.2);
}
.btn-primary:hover { background-color: #1d4ed8; }
.btn-primary:active { transform: translateY(1px); box-shadow: none; }

.btn-secondary {
    background-color: #ffffff;
    color: #2563eb;
    padding: 14px 24px;
    border: 2px solid #2563eb;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    width: 100%;
    margin-bottom: 12px;
    transition: all 0.2s;
}
.btn-secondary:hover { background-color: #eff6ff; }

.btn-whatsapp {
    background-color: #22c55e;
    color: white;
    padding: 14px 24px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    width: 100%;
    transition: background-color 0.2s;
    box-shadow: 0 4px 6px -1px rgba(34, 197, 94, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.btn-whatsapp::before {
    content: "WA";
    font-weight: bold;
    display: inline-block;
    padding-right: 5px;
}
.btn-whatsapp:hover { background-color: #16a34a; }

/* Preview UI */
.po-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 25px;
}
.po-header h2 {
    margin: 0;
    font-size: 24px;
    color: #0f172a;
}
.back-link {
    text-decoration: none;
    color: #64748b;
    font-weight: 500;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: color 0.2s;
}
.back-link:hover { color: #0f172a; }

.po-product-card {
    display: flex;
    gap: 24px;
    background: #ffffff;
    padding: 24px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
    margin-bottom: 24px;
}
.po-product-img {
    width: 120px;
    height: 120px;
    object-fit: contain;
    border-radius: 8px;
    background: #f8fafc;
    padding: 10px;
    border: 1px solid #f1f5f9;
}
.po-product-info h3 { margin: 0 0 8px 0; font-size: 20px; color: #0f172a; }
.po-product-info .sku { color: #64748b; font-size: 13px; font-weight: 500; }

.po-details-card {
    background: #ffffff;
    padding: 24px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
    margin-bottom: 24px;
}
.po-details-card h4 {
    margin: 0 0 16px 0;
    font-size: 15px;
    color: #334155;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 10px;
}
.po-details-card table { width: 100%; border-collapse: collapse; }
.po-details-card table td { padding: 12px 0; border-bottom: 1px solid #f1f5f9; font-size: 15px; color: #475569; }
.po-details-card table tr:last-child td { border-bottom: none; }
.po-details-card table strong { color: #0f172a; }

.info-group { margin-bottom: 16px; }
.info-group:last-child { margin-bottom: 0; }
.info-group label { display: block; font-size: 12px; color: #64748b; font-weight: 600; margin-bottom: 4px; }
.info-group p { margin: 0; font-size: 15px; color: #1e293b; }

.po-price-card {
    background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 100%);
    color: white;
    padding: 30px;
    border-radius: 12px;
    margin-bottom: 24px;
    box-shadow: 0 10px 15px -3px rgba(37, 99, 235, 0.3);
    text-align: center;
}
.po-price-card p { margin: 0 0 8px 0; font-size: 13px; font-weight: 600; letter-spacing: 0.05em; opacity: 0.9; }
.po-price-card h3 { margin: 0 0 12px 0; font-size: 36px; font-weight: 700; }
.po-price-card small { font-size: 12px; opacity: 0.8; display: block; max-width: 400px; margin: 0 auto; line-height: 1.4; }
