/**
 * Dini Petty Archives - Quote Request Page Styles
 * Professional, clean design for the quote request system
 */

/* ============================================
   Quote Request Wrapper
   ============================================ */
.dinipetty-quote-request-form {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
}

.dinipetty-quote-request-form h2 {
    font-size: 32px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 3px solid #c9a227;
}

.dinipetty-quote-request-form h3 {
    font-size: 22px;
    font-weight: 600;
    color: #333;
    margin: 30px 0 20px;
}

/* ============================================
   Quote Items Table
   ============================================ */
.dinipetty-quote-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-bottom: 30px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
    border-radius: 12px;
    overflow: hidden;
}

.dinipetty-quote-table thead {
    background: linear-gradient(135deg, #1a1a1a 0%, #333 100%);
}

.dinipetty-quote-table th {
    padding: 18px 20px;
    text-align: left;
    font-weight: 600;
    color: #fff;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 1px;
}

.dinipetty-quote-table tbody tr {
    background: #fff;
    transition: all 0.2s ease;
}

.dinipetty-quote-table tbody tr:nth-child(even) {
    background: #f9f9f9;
}

.dinipetty-quote-table tbody tr:hover {
    background: #fff8e7;
    transform: scale(1.01);
}

.dinipetty-quote-table td {
    padding: 16px 20px;
    border-bottom: 1px solid #eee;
    color: #444;
    font-size: 15px;
}

.dinipetty-quote-table td:first-child {
    font-weight: 500;
    color: #1a1a1a;
}

/* ============================================
   Remove Button
   ============================================ */
.dinipetty-remove-item {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.dinipetty-remove-item:hover {
    background: linear-gradient(135deg, #c82333 0%, #bd2130 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.4);
}

/* ============================================
   Quote Count Badge
   ============================================ */
.dinipetty-quote-count {
    background: linear-gradient(135deg, #c9a227 0%, #d4af37 100%);
    color: #1a1a1a;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 16px;
    display: inline-block;
    margin-bottom: 30px;
}

.dinipetty-quote-count strong {
    font-size: 20px;
}

/* ============================================
   Empty Quote State
   ============================================ */
.dinipetty-empty-quote {
    padding: 60px 40px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    text-align: center;
    border-radius: 12px;
    border: 2px dashed #dee2e6;
}

.dinipetty-empty-quote p {
    font-size: 18px;
    color: #666;
    margin: 0;
}

.dinipetty-empty-quote a {
    color: #c9a227;
    font-weight: 600;
    text-decoration: none;
}

.dinipetty-empty-quote a:hover {
    text-decoration: underline;
}

/* ============================================
   Quote Form
   ============================================ */
.dinipetty-quote-form {
    background: #fff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    border: 1px solid #eee;
}

.dinipetty-quote-form p {
    margin-bottom: 0;
}

.dinipetty-quote-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.dinipetty-quote-form input[type="text"],
.dinipetty-quote-form input[type="email"],
.dinipetty-quote-form input[type="tel"],
.dinipetty-quote-form select,
.dinipetty-quote-form textarea {
    width: 100%;
    padding: 14px 18px;
    margin-bottom: 20px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.2s ease;
    background: #fafafa;
}

.dinipetty-quote-form input:focus,
.dinipetty-quote-form select:focus,
.dinipetty-quote-form textarea:focus {
    outline: none;
    border-color: #c9a227;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(201, 162, 39, 0.1);
}

.dinipetty-quote-form select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    padding-right: 40px;
}

.dinipetty-quote-form textarea {
    min-height: 120px;
    resize: vertical;
}

/* ============================================
   Submit Button
   ============================================ */
.dinipetty-submit-quote {
    background: linear-gradient(135deg, #c9a227 0%, #d4af37 100%);
    color: #1a1a1a;
    border: none;
    padding: 18px 40px;
    font-size: 18px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.dinipetty-submit-quote:hover {
    background: linear-gradient(135deg, #d4af37 0%, #e0c040 100%);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(201, 162, 39, 0.4);
}

.dinipetty-submit-quote:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* ============================================
   Messages
   ============================================ */
#dinipetty-quote-message {
    margin-top: 20px;
    padding: 20px;
    border-radius: 8px;
    font-size: 16px;
    display: none;
}

#dinipetty-quote-message.success {
    display: block;
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    color: #155724;
    border: 1px solid #b1dfbb;
}

#dinipetty-quote-message.error {
    display: block;
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* ============================================
   Add to Quote Buttons (Shop & Product Pages)
   ============================================ */
.dinipetty-add-to-quote,
.dinipetty-add-to-quote-single {
    background: linear-gradient(135deg, #c9a227 0%, #d4af37 100%);
    color: #1a1a1a !important;
    border: none;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none !important;
    display: inline-block;
}

.dinipetty-add-to-quote:hover,
.dinipetty-add-to-quote-single:hover {
    background: linear-gradient(135deg, #d4af37 0%, #e0c040 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(201, 162, 39, 0.35);
}

.dinipetty-quote-wrapper {
    margin: 20px 0;
}

.dinipetty-quote-notice {
    margin-top: 15px;
    padding: 15px;
    background: #f8f9fa;
    border-left: 4px solid #c9a227;
    color: #666;
    font-size: 14px;
    border-radius: 0 6px 6px 0;
}

/* ============================================
   Menu Badge
   ============================================ */
.dinipetty-quote-count-badge {
    background: #c9a227;
    color: #1a1a1a;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 12px;
    margin-left: 6px;
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 768px) {
    .dinipetty-quote-request-form {
        padding: 20px 15px;
    }

    .dinipetty-quote-request-form h2 {
        font-size: 24px;
    }

    .dinipetty-quote-form {
        padding: 25px 20px;
    }

    .dinipetty-quote-table th,
    .dinipetty-quote-table td {
        padding: 12px 15px;
        font-size: 14px;
    }

    .dinipetty-submit-quote {
        width: 100%;
        padding: 16px;
    }
}

/* ============================================
   Animation for Added Items
   ============================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dinipetty-quote-table tbody tr {
    animation: fadeInUp 0.3s ease;
}

.dinipetty-added-message {
    animation: fadeInUp 0.3s ease;
}
