/* ultra-premium.css - Replaces order-styles.css for a premium dark theme */

/* --- GLOBAL STYLES & LAYOUT --- */
body {
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol';
    background-color: #0d1117; /* Dark background for premium feel */
    color: #c9d1d9; /* Light text for contrast */
    margin: 0;
    padding: 30px 10px;
    display: flex;
    justify-content: center;
    align-items: flex-start; /* Align content to the top */
    min-height: 100vh;
}

.order-container {
    background-color: #161b22; /* Slightly lighter dark background for the container */
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.05); /* Premium, subtle 3D shadow */
    max-width: 700px; /* Wider container for desktop */
    width: 100%;
    transition: box-shadow 0.3s ease;
}

.order-container:hover {
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.1);
}

h2 {
    color: #58a6ff; /* Primary color for headlines */
    text-align: center;
    margin-bottom: 30px;
    font-weight: 700;
    font-size: 2em;
    letter-spacing: 0.5px;
}

h3 {
    color: #c9d1d9;
    margin-top: 30px;
    margin-bottom: 20px;
    padding-bottom: 5px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 1.2em;
    font-weight: 600;
}

hr {
    border: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin: 30px 0;
}

/* --- PRODUCT LIST --- */
.product-list-container {
    background-color: #0d1117; 
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.product-details {
    display: flex;
    align-items: center;
    gap: 25px;
    margin-bottom: 25px;
    padding-bottom: 25px;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.1); /* Subtle dashed line */
}

.product-details:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.product-details img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 6px;
    border: 3px solid #58a6ff; /* Accent border on product image */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.product-info {
    flex-grow: 1;
}

.product-info h3 {
    margin-top: 0;
    margin-bottom: 5px;
    font-size: 1.2em;
    color: #58a6ff; 
    border-bottom: none;
    padding-bottom: 0;
}

.product-info p {
    margin: 3px 0;
    font-size: 0.95em;
    color: #c9d1d9;
}

.product-info p:last-child {
    font-size: 0.8em;
    color: #5a5f67; /* Muted color for stock */
}

.remove-btn {
    background-color: #f85149; /* GitHub-style red for removal */
    color: white;
    border: none;
    padding: 10px 18px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9em;
    font-weight: 600;
    transition: background-color 0.3s ease, transform 0.1s;
    align-self: center; /* Center vertically */
    flex-shrink: 0; 
}

.remove-btn:hover {
    background-color: #ff7b72;
    transform: translateY(-1px);
}

/* --- ORDER SUMMARY & QUANTITY --- */
.order-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 15px 0;
    font-size: 1.2em;
    font-weight: 700;
}

.order-summary h3 {
    margin: 0;
    font-size: 1.5em; /* Larger, clearer total */
    color: #2fb95f; /* Green for total amount */
}

#order-qty {
    width: 80px;
    text-align: center;
    background-color: #0d1117;
    color: #c9d1d9;
    border: 1px solid #30363d;
    padding: 10px;
    border-radius: 6px;
}

/* --- FORM STYLING (Inputs, Selects) --- */
form label {
    display: block;
    width: 100%;
    margin-top: 15px;
    color: #8b949e; /* Muted label color */
    font-weight: 500;
    font-size: 0.9em;
    margin-bottom: 5px;
}

form input[type="text"],
form input[type="tel"],
form input[type="number"],
form select,
form textarea {
    padding: 12px 15px;
    background-color: #0d1117;
    color: #c9d1d9;
    border: 1px solid #30363d;
    border-radius: 6px;
    box-sizing: border-box;
    margin-bottom: 15px;
    width: 100%;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

form input:focus,
form select:focus,
form textarea:focus {
    border-color: #58a6ff;
    box-shadow: 0 0 0 3px rgba(88, 166, 255, 0.2);
    outline: none;
}

.form-row {
    display: flex;
    gap: 20px;
}

.form-row > div {
    flex: 1;
}

/* Custom select dropdown styling */
form select {
    appearance: none; 
    -webkit-appearance: none;
    background-image: url('data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%20viewBox%3D%220%200%20292.4%20292.4%22%3E%3Cpath%20fill%3D%22%2358a6ff%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200%20-24.8%200L146.2%20185.7%2030.3%2069.4a17.6%2017.6%200%200%200%20-24.8%2024.8l130.6%20130.8c6.6%206.5%2017.2%206.5%2023.7%200l130.6-130.8c6.4-6.5%206.4-17.1-.1-24.8z%22%2F%3E%3C%2Fsvg%3E');
    background-repeat: no-repeat;
    background-position: right 15px top 50%;
    background-size: 10px auto;
    padding-right: 35px;
    cursor: pointer;
}

.checkbox-label {
    color: #8b949e;
    font-size: 0.9em;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
}

.checkbox-label input {
    width: 18px;
    height: 18px;
    margin-right: 10px;
    border-color: #30363d;
    background-color: #161b22;
    transition: background-color 0.2s;
    margin-bottom: 0;
}

/* --- BUTTONS --- */
#place-order-btn {
    background-color: #238636; /* Success/Go color */
    color: white;
    border: none;
    padding: 15px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.2em;
    font-weight: 700;
    transition: background-color 0.3s ease, transform 0.1s;
    margin-top: 25px;
    width: 100%;
    letter-spacing: 0.5px;
}

#place-order-btn:hover {
    background-color: #2ea043;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(46, 160, 67, 0.4);
}

#place-order-btn:disabled {
    background-color: #30363d;
    color: #8b949e;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* On Call Button (CTA) */
.btn-on-call {
    background-color: #ff8c00; 
    color: #161b22; /* Dark text on bright button */
    padding: 12px 0px;
    border-radius: 6px;
    font-size: 1.1em;
    font-weight: 700;
    transition: background-color 0.3s ease;
    text-decoration: none;
    display: block;
    width: 100%;
    text-align: center;
    margin-top: 15px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.btn-on-call:hover {
    background-color: #ffa500;
}

/* --- CONTACT INFO --- */
.contact-info-section {
    text-align: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-info-section p {
    color: #8b949e;
    font-size: 0.9em;
}

.contact-methods {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 15px;
}

.contact-methods a {
    color: #58a6ff;
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    transition: color 0.3s ease;
}

.contact-methods a:hover {
    color: #79c0ff;
}

.contact-methods i {
    margin-right: 8px;
    font-size: 1.2em;
}

.contact-methods .fa-whatsapp {
    color: #25D366;
}

.contact-methods .fa-envelope {
    color: #ff8c00; 
}

/* --- ERROR/WARNING MESSAGES --- */
.error-message {
    background-color: #601414; 
    border: 1px solid #f85149;
    color: #f85149;
    padding: 10px;
    border-radius: 6px;
    text-align: center;
    font-weight: bold;
    margin-bottom: 20px;
}

/* ---- Media Queries for Mobile Optimization ---- */
@media (max-width: 768px) {
    body {
        padding: 15px 5px;
    }

    .order-container {
        padding: 20px 15px;
        border-radius: 0; /* Full width edge-to-edge on mobile */
        box-shadow: none;
    }
    
    h2 {
        font-size: 1.6em;
    }

    .form-row {
        flex-direction: column;
        gap: 0;
    }

    .form-row label, .form-row input, .form-row select {
        margin-top: 10px;
    }

    .product-details {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 15px;
    }
    
    .product-details img {
        width: 90px;
        height: 90px;
    }
    
    .product-info h3 {
        text-align: center;
    }
    
    .product-details .remove-btn {
        margin-top: 15px;
        align-self: center;
    }

    .order-summary {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .order-summary h3 {
        margin-top: 10px;
        font-size: 1.3em;
    }

    .contact-methods {
        flex-wrap: wrap; 
        gap: 15px;
        justify-content: space-around;
    }
}