body {
    font-family: "Poppins", Arial, sans-serif;
    background: linear-gradient(135deg, #eef4ff, #f9fbff);
    margin: 0;
    padding: 0;
    color: #333;
}

header{
    background: linear-gradient(135deg, rgb(151,130,111) 0%, rgb(225,209,196) 100%);
    color: #fff;
    padding: 14px 0;
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
    position: sticky;
    top:0;
    z-index:1000;
    backdrop-filter: blur(6px);
}
.header-content{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:20px;
}
.logo{
    font-size:1.6rem;
    font-weight:700;
    letter-spacing:0.4px;
    background: rgb(171,0,62);
    -webkit-background-clip:text;
    -webkit-text-fill-color:transparent;
    background-clip:text;
}

.container {
    width: 90%;
    max-width: 1000px;
    margin: 0 auto;
}



.user-menu {
    display: flex;
    gap: 15px;
    align-items: center;
}
.user-menu a {
    color: #2563eb;
    text-decoration: none;
    font-weight: 500;
    padding: 6px 12px;
    border-radius: 6px;
    transition: all 0.2s ease;
}
.user-menu a:hover {
    background-color: #f0f4ff;
}
.user-menu span {
    color: #333;
    font-weight: 500;
}

.delivery-container {
    background: white;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.06);
    margin: 40px auto;
    max-width: 700px;
    transition: transform 0.2s ease, box-shadow 0.3s ease;
}
.delivery-container:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}

h1 {
    text-align: center;
    color: #1e3a8a;
    margin-bottom: 25px;
    font-weight: 600;
    font-size: 1.8rem;
}

.book-info {
    background-color: #f8faff;
    border: 1px solid #e3e9ff;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 25px;
}
.book-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #2563eb;
    margin-bottom: 5px;
}
.book-author {
    color: #666;
    margin-bottom: 5px;
}
.book-price {
    font-weight: 600;
    color: #2e7d32;
    margin-top: 10px;
}

.error-message {
    background: #ffebee;
    border: 1px solid #ffcdd2;
    color: #b71c1c;
    padding: 12px 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    animation: fadeIn 0.3s ease;
}
.error-list {
    list-style: none;
    margin: 0;
    padding: 0;
}


form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}
.form-group {
    flex: 1;
    min-width: 200px;
    display: flex;
    flex-direction: column;
}

label {
    font-weight: 600;
    margin-bottom: 6px;
    color: #333;
}

input[type="text"],
select {
    padding: 12px 14px;
    border: 1px solid #dcdcdc;
    border-radius: 8px;
    background-color: #fafafa;
    font-size: 15px;
    transition: all 0.25s ease;
}
input:focus, select:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
    background-color: #fff;
}


.btn {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}
.btn-success {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: white;
}
.btn-success:hover {
    background: linear-gradient(135deg, #16a34a, #15803d);
    transform: translateY(-1px);
}


@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: translateY(0); }
}
.contact-page {
    min-height: calc(100vh - 200px);
    padding: 50px 0;
    background: linear-gradient(135deg, #f9f9f9 0%, #f0f0f0 100%);
}

.contact-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

.contact-header {
    text-align: center;
    margin-bottom: 40px;
}

.contact-header h1 {
    color: #333;
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.contact-header p {
    color: #666;
    font-size: 1.1rem;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.contact-form {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-weight: 600;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #ab003e;
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

.submit-btn {
    background: linear-gradient(135deg, #ab003e 0%, #d32f2f 100%);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s;
    width: 100%;
}

.submit-btn:hover {
    transform: translateY(-2px);
}

.contact-info {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.info-item {
    margin-bottom: 25px;
    padding-bottom: 25px;
    border-bottom: 1px solid #eee;
}

.info-item:last-child {
    border-bottom: none;
}

.info-item h3 {
    color: #ab003e;
    margin-bottom: 10px;
    font-size: 1.3rem;
}

.info-item p {
    color: #666;
    line-height: 1.6;
}

.alert {
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: none;
}

.alert.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    display: block;
}

.alert.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    display: block;
}

@media (max-width: 768px) {
    .contact-content {
        grid-template-columns: 1fr;
    }
}

 .quantity-controls {
            display: flex;
            align-items: center;
            gap: 10px;
            margin-bottom: 20px;
        }
        .quantity-btn {
            width: 40px;
            height: 40px;
            background: #f0f0f0;
            border: none;
            border-radius: 4px;
            font-size: 18px;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.3s;
        }
        .quantity-btn:hover {
            background: #e0e0e0;
            transform: scale(1.05);
        }
        .quantity-btn:disabled {
            opacity: 0.5;
            cursor: not-allowed;
        }
        .quantity-input {
            width: 80px;
            height: 40px;
            text-align: center;
            border: 2px solid #4CAF50;
            border-radius: 4px;
            font-size: 16px;
            font-weight: bold;
        }
        .price-breakdown {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
            padding: 20px;
            border-radius: 10px;
            margin-bottom: 25px;
            box-shadow: 0 4px 15px rgba(0,0,0,0.1);
        }
        .price-row {
            display: flex;
            justify-content: space-between;
            margin-bottom: 12px;
            padding-bottom: 12px;
            border-bottom: 1px solid rgba(255,255,255,0.2);
        }
        .price-row.total {
            font-weight: bold;
            font-size: 1.3em;
            border-bottom: none;
            margin-top: 10px;
            padding-top: 10px;
            border-top: 2px solid rgba(255,255,255,0.3);
        }
        .stock-message {
            background: linear-gradient(135deg, <?php echo $is_preorder ? '#f39c12' : ($stock <= 50 ? '#ff6b6b' : '#4CAF50'); ?> 0%, 
                                              <?php echo $is_preorder ? '#e67e22' : ($stock <= 50 ? '#ee5a52' : '#2E7D32'); ?> 100%);
            color: white;
            padding: 15px;
            border-radius: 8px;
            margin-bottom: 20px;
            text-align: center;
            font-weight: bold;
            box-shadow: 0 4px 15px rgba(<?php echo $is_preorder ? '230, 126, 34' : ($stock <= 50 ? '238, 90, 82' : '46, 125, 50'); ?>, 0.2);
        }
        .max-quantity {
            font-size: 0.9em;
            color: #666;
            margin-top: 5px;
        }
        .payment-methods {
            display: flex;
            flex-direction: column;
            gap: 10px;
            margin: 15px 0;
        }
        .payment-method-option {
            cursor: pointer;
        }
        .payment-method-option input {
            display: none;
        }
        .payment-method-card {
            display: flex;
            align-items: center;
            gap: 15px;
            padding: 15px;
            border: 2px solid #ddd;
            border-radius: 8px;
            transition: all 0.3s;
            background: white;
        }
        .payment-method-card i {
            font-size: 1.5rem;
            color: #3498db;
        }
        .payment-method-card strong {
            display: block;
            color: #2c3e50;
        }
        .payment-method-card small {
            color: #7f8c8d;
            font-size: 0.9em;
        }
        .payment-method-option input:checked + .payment-method-card {
            border-color: #4CAF50;
            background-color: #f8fff8;
            box-shadow: 0 2px 8px rgba(76, 175, 80, 0.2);
        }
        .payment-method-option input:checked + .payment-method-card i {
            color: #4CAF50;
        }
        .payment-free {
            color: #27ae60;
            font-weight: bold;
        }
        .payment-ramburs-cost {
            color: #e74c3c;
            font-weight: bold;
        }
        .localitate-container {
            margin-top: 20px;
        }
        .localitate-group {
            position: relative;
        }
        .localitate-input {
            width: 100%;
            padding: 12px;
            border: 2px solid #ddd;
            border-radius: 8px;
            font-size: 16px;
            transition: border-color 0.3s;
            box-sizing: border-box;
        }
        .localitate-input:focus {
            border-color: #4CAF50;
            outline: none;
        }
        .localitate-input:disabled {
            background-color: #f5f5f5;
            cursor: not-allowed;
        }
        .localitate-suggestions {
            position: absolute;
            top: 100%;
            left: 0;
            right: 0;
            background: white;
            border: 1px solid #ddd;
            border-top: none;
            border-radius: 0 0 8px 8px;
            max-height: 300px;
            overflow-y: auto;
            z-index: 1000;
            box-shadow: 0 4px 12px rgba(0,0,0,0.1);
            display: none;
        }
        .localitate-suggestion {
            padding: 12px;
            cursor: pointer;
            transition: background-color 0.2s;
            border-bottom: 1px solid #f0f0f0;
        }
        .localitate-suggestion:hover {
            background-color: #f0f0f0;
        }
        .localitate-suggestion:last-child {
            border-bottom: none;
        }
        .localitate-suggestion.active {
            background-color: #e0f7fa;
            font-weight: bold;
        }
        .localitate-no-results {
            padding: 12px;
            color: #666;
            font-style: italic;
        }
        .required-field {
            color: #e74c3c;
        }
        .localitate-info {
            font-size: 0.9em;
            color: #666;
            margin-top: 5px;
        }