/* Odejiji - Simple Order Form Website */
:root {
    --background: #F5F2EB;
    --surface: #E8E3D9;
    --primary: #2C4C3B;
    --primary-hover: #3B614D;
    --secondary: #8B9D83;
    --accent: #C16E54;
    --text-main: #1C2B23;
    --text-muted: #4A5D52;
    --border: #D5CEBD;
    --white: #FFFFFF;
    --whatsapp: #25D366;
    --whatsapp-hover: #128C7E;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: var(--background);
    color: var(--text-main);
    min-height: 100vh;
    line-height: 1.6;
    -webkit-text-size-adjust: 100%;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Cormorant Garamond', serif;
}

.app-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-icon {
    width: 24px;
    height: 24px;
    color: var(--primary);
}

.logo-text {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text-main);
}

/* WhatsApp Header Button - GREEN */
.whatsapp-header-btn {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    background: #25D366 !important;
    color: white !important;
    padding: 0.5rem 0.875rem;
    border-radius: 9999px;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 600;
    transition: all 0.2s ease;
    -webkit-tap-highlight-color: transparent;
}

.whatsapp-header-btn:hover {
    background: #128C7E !important;
    transform: scale(1.02);
}

.whatsapp-header-btn svg {
    width: 18px;
    height: 18px;
}

/* Main Content */
.main-content {
    flex: 1;
    padding: 1rem;
    width: 100%;
}

.content-grid {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

/* Product Card */
.product-section {
    width: 100%;
}

.product-card {
    background: var(--white);
    border-radius: 1.25rem;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

.product-image-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    overflow: hidden;
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-badge {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    background: var(--primary);
    color: white;
    padding: 0.35rem 0.7rem;
    border-radius: 9999px;
    font-size: 0.6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.product-details {
    padding: 1rem;
}

.product-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 0.1rem;
    line-height: 1.2;
}

.product-subtitle {
    color: var(--secondary);
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
}

.product-price {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.product-description {
    color: var(--text-muted);
    margin-bottom: 0.75rem;
    font-size: 0.8rem;
    line-height: 1.5;
}

.product-benefits {
    list-style: none;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.25rem 0.5rem;
    margin-bottom: 1rem;
}

.product-benefits li {
    font-size: 0.7rem;
    color: var(--text-muted);
}

/* Mobile WhatsApp Button on Product Card - GREEN */
.mobile-only {
    display: flex;
}

/* Order Section */
.order-section {
    width: 100%;
}

.order-card {
    background: var(--white);
    border-radius: 1.25rem;
    padding: 1.25rem;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

.order-header {
    text-align: center;
    margin-bottom: 1.25rem;
}

.order-header h2 {
    font-size: 1.35rem;
    color: var(--text-main);
    margin-bottom: 0.2rem;
}

.order-header p {
    color: var(--text-muted);
    font-size: 0.8rem;
}

/* Form Styles */
.order-form {
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.form-group label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-main);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 0.875rem;
    border: 1px solid var(--border);
    border-radius: 0.625rem;
    font-size: 16px;
    font-family: inherit;
    background: var(--background);
    color: var(--text-main);
    transition: all 0.2s ease;
    -webkit-appearance: none;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(44, 76, 59, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--secondary);
}

.form-group textarea {
    resize: vertical;
    min-height: 70px;
}

/* Order Summary Box */
.order-summary-box {
    background: var(--background);
    border-radius: 0.625rem;
    padding: 0.875rem;
    margin-top: 0.25rem;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 0.3rem 0;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.summary-row.total {
    border-top: 1px solid var(--border);
    margin-top: 0.4rem;
    padding-top: 0.6rem;
    font-weight: 700;
    font-size: 1rem;
    color: var(--primary);
}

/* Submit Button - PRIMARY GREEN */
.submit-btn {
    width: 100%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-hover) 100%);
    color: white;
    border: none;
    border-radius: 9999px;
    padding: 0.875rem 1.25rem;
    font-size: 0.95rem;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 6px 18px rgba(44, 76, 59, 0.3);
    margin-top: 0.5rem;
    -webkit-tap-highlight-color: transparent;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(44, 76, 59, 0.4);
}

.submit-btn:active {
    transform: translateY(0);
}

.submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.submit-btn svg {
    width: 18px;
    height: 18px;
}

/* Divider */
.divider {
    display: flex;
    align-items: center;
    margin: 1.25rem 0;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}

.divider span {
    padding: 0 1rem;
    color: var(--secondary);
    font-size: 0.8rem;
    font-weight: 600;
}

/* WhatsApp Button - BRIGHT GREEN */
.whatsapp-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    background: #25D366 !important;
    color: white !important;
    border: none;
    border-radius: 9999px;
    padding: 0.875rem 1.25rem;
    font-size: 0.95rem;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 6px 18px rgba(37, 211, 102, 0.35);
    -webkit-tap-highlight-color: transparent;
}

.whatsapp-btn:hover {
    background: #128C7E !important;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.45);
}

.whatsapp-btn svg {
    width: 20px;
    height: 20px;
}

.whatsapp-btn.small {
    padding: 0.7rem 1rem;
    font-size: 0.85rem;
    margin-top: 0.875rem;
}

.whatsapp-btn.small svg {
    width: 18px;
    height: 18px;
}

/* Trust Text */
.trust-text {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    margin-top: 1rem;
    color: var(--secondary);
    font-size: 0.7rem;
    text-align: center;
}

.trust-text svg {
    width: 14px;
    height: 14px;
    color: var(--primary);
}

/* Footer */
.footer {
    text-align: center;
    padding: 1rem;
    border-top: 1px solid var(--border);
    background: var(--white);
}

.footer-contact {
    display: flex;
    justify-content: center;
    gap: 1.25rem;
    margin-bottom: 0.4rem;
    flex-wrap: wrap;
}

.footer-contact a {
    color: var(--primary);
    font-weight: 600;
    font-size: 0.8rem;
    text-decoration: none;
}

.footer p {
    color: var(--secondary);
    font-size: 0.65rem;
}

/* Modal */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 500;
    padding: 0.75rem;
}

.modal-overlay.active {
    display: flex;
}

.modal-content {
    background: var(--white);
    border-radius: 1.25rem;
    padding: 1.25rem;
    max-width: 360px;
    width: 100%;
    text-align: center;
    animation: modalIn 0.3s ease-out;
    max-height: 90vh;
    overflow-y: auto;
}

@keyframes modalIn {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(15px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.modal-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.875rem;
    background: var(--primary);
    color: white;
}

.modal-icon svg {
    width: 30px;
    height: 30px;
}

.modal-content h2 {
    font-size: 1.35rem;
    color: var(--text-main);
    margin-bottom: 0.2rem;
}

.modal-subtitle {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 0.875rem;
}

.modal-info {
    background: var(--background);
    border-radius: 0.625rem;
    padding: 0.875rem;
    margin-bottom: 0.875rem;
    text-align: left;
}

.modal-info p {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 0.4rem;
}

.modal-info p:last-child {
    margin-bottom: 0;
}

.payment-info-box {
    background: var(--surface);
    border-radius: 0.625rem;
    padding: 0.875rem;
    margin-bottom: 0.875rem;
}

.payment-info-box h3 {
    font-size: 0.95rem;
    color: var(--text-main);
    margin-bottom: 0.2rem;
}

.payment-info-box p {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 0.6rem;
}

.payment-badges {
    display: flex;
    justify-content: center;
    gap: 0.4rem;
    flex-wrap: wrap;
}

.payment-badges span {
    background: var(--white);
    color: var(--primary);
    padding: 0.3rem 0.6rem;
    border-radius: 9999px;
    font-size: 0.65rem;
    font-weight: 600;
}

.modal-close-btn {
    width: 100%;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 9999px;
    padding: 0.75rem 1.25rem;
    font-size: 0.95rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s ease;
    -webkit-tap-highlight-color: transparent;
}

.modal-close-btn:hover {
    background: var(--primary-hover);
}

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    inset: 0;
    background: rgba(245, 242, 235, 0.95);
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 0.75rem;
    z-index: 600;
}

.loading-overlay.active {
    display: flex;
}

.loader {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading-overlay p {
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.9rem;
}

/* Toast */
.toast {
    position: fixed;
    bottom: 1.25rem;
    left: 50%;
    transform: translateX(-50%) translateY(80px);
    background: var(--primary);
    color: white;
    padding: 0.7rem 1.25rem;
    border-radius: 9999px;
    font-weight: 600;
    font-size: 0.85rem;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 700;
}

.toast.active {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.toast.error {
    background: var(--accent);
}

/* ========== TABLET (768px+) ========== */
@media (min-width: 768px) {
    .header {
        padding: 1rem 2rem;
    }
    
    .logo-icon {
        width: 28px;
        height: 28px;
    }
    
    .logo-text {
        font-size: 1.6rem;
    }
    
    .whatsapp-header-btn {
        padding: 0.6rem 1rem;
        font-size: 0.85rem;
    }
    
    .main-content {
        padding: 2rem;
    }
    
    .content-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
        align-items: start;
    }
    
    .mobile-only {
        display: none !important;
    }
    
    .product-card {
        position: sticky;
        top: 90px;
        border-radius: 1.5rem;
    }
    
    .product-details {
        padding: 1.5rem;
    }
    
    .product-title {
        font-size: 1.6rem;
    }
    
    .product-price {
        font-size: 2rem;
    }
    
    .product-description {
        font-size: 0.85rem;
    }
    
    .product-benefits li {
        font-size: 0.75rem;
    }
    
    .order-card {
        padding: 1.75rem;
        border-radius: 1.5rem;
    }
    
    .order-header h2 {
        font-size: 1.5rem;
    }
    
    .form-group input,
    .form-group textarea {
        padding: 0.875rem 1rem;
    }
}

/* ========== DESKTOP (1024px+) ========== */
@media (min-width: 1024px) {
    .header {
        padding: 1rem 3rem;
    }
    
    .main-content {
        padding: 2.5rem 3rem;
    }
    
    .content-grid {
        max-width: 1050px;
        gap: 2.5rem;
    }
    
    .product-details {
        padding: 1.75rem;
    }
    
    .product-title {
        font-size: 1.75rem;
    }
    
    .product-price {
        font-size: 2.25rem;
    }
    
    .order-card {
        padding: 2rem;
    }
    
    .order-header h2 {
        font-size: 1.6rem;
    }
}

/* ========== SMALL MOBILE (375px and below) ========== */
@media (max-width: 380px) {
    .header {
        padding: 0.5rem 0.75rem;
    }
    
    .logo-icon {
        width: 22px;
        height: 22px;
    }
    
    .logo-text {
        font-size: 1.2rem;
    }
    
    .whatsapp-header-btn {
        padding: 0.4rem 0.65rem;
        font-size: 0.7rem;
    }
    
    .whatsapp-header-btn svg {
        width: 16px;
        height: 16px;
    }
    
    .main-content {
        padding: 0.625rem;
    }
    
    .content-grid {
        gap: 1rem;
    }
    
    .product-card {
        border-radius: 1rem;
    }
    
    .product-badge {
        font-size: 0.55rem;
        padding: 0.3rem 0.55rem;
    }
    
    .product-details {
        padding: 0.875rem;
    }
    
    .product-title {
        font-size: 1.2rem;
    }
    
    .product-subtitle {
        font-size: 0.75rem;
    }
    
    .product-price {
        font-size: 1.5rem;
    }
    
    .product-description {
        font-size: 0.75rem;
        margin-bottom: 0.6rem;
    }
    
    .product-benefits {
        gap: 0.2rem 0.35rem;
        margin-bottom: 0.75rem;
    }
    
    .product-benefits li {
        font-size: 0.65rem;
    }
    
    .order-card {
        padding: 1rem;
        border-radius: 1rem;
    }
    
    .order-header {
        margin-bottom: 1rem;
    }
    
    .order-header h2 {
        font-size: 1.2rem;
    }
    
    .order-header p {
        font-size: 0.75rem;
    }
    
    .order-form {
        gap: 0.75rem;
    }
    
    .form-group label {
        font-size: 0.75rem;
    }
    
    .form-group input,
    .form-group textarea {
        padding: 0.65rem 0.75rem;
        border-radius: 0.5rem;
    }
    
    .form-group textarea {
        min-height: 60px;
    }
    
    .order-summary-box {
        padding: 0.75rem;
    }
    
    .summary-row {
        font-size: 0.8rem;
    }
    
    .summary-row.total {
        font-size: 0.95rem;
    }
    
    .submit-btn {
        padding: 0.75rem 1rem;
        font-size: 0.85rem;
    }
    
    .submit-btn svg {
        width: 16px;
        height: 16px;
    }
    
    .divider {
        margin: 1rem 0;
    }
    
    .divider span {
        font-size: 0.75rem;
    }
    
    .whatsapp-btn {
        padding: 0.75rem 1rem;
        font-size: 0.85rem;
    }
    
    .whatsapp-btn svg {
        width: 18px;
        height: 18px;
    }
    
    .trust-text {
        font-size: 0.65rem;
        margin-top: 0.875rem;
    }
    
    .footer {
        padding: 0.875rem 0.75rem;
    }
    
    .footer-contact {
        gap: 0.875rem;
    }
    
    .footer-contact a {
        font-size: 0.7rem;
    }
    
    .footer p {
        font-size: 0.6rem;
    }
    
    .modal-content {
        padding: 1rem;
        border-radius: 1rem;
    }
    
    .modal-icon {
        width: 50px;
        height: 50px;
    }
    
    .modal-icon svg {
        width: 25px;
        height: 25px;
    }
    
    .modal-content h2 {
        font-size: 1.2rem;
    }
}

/* ========== VERY SMALL (320px) ========== */
@media (max-width: 340px) {
    .logo-text {
        font-size: 1.1rem;
    }
    
    .whatsapp-header-btn span {
        display: none;
    }
    
    .whatsapp-header-btn {
        padding: 0.45rem;
        border-radius: 50%;
    }
    
    .product-title {
        font-size: 1.1rem;
    }
    
    .product-price {
        font-size: 1.4rem;
    }
    
    .order-header h2 {
        font-size: 1.1rem;
    }
}

/* Prevent zoom on input focus (iOS) */
@media (max-width: 768px) {
    input, select, textarea {
        font-size: 16px !important;
    }
}
