/**
 * Juju Wedding Quotes - Frontend CSS
 * Updated design to match Juju Wedding aesthetic
 */

/* ==========================================
   Quote Button (on product cards)
   ========================================== */
.juju-quote-btn {
    background: linear-gradient(135deg, #2d2d2d, #3d3d3d) !important;
    color: white !important;
    border: none !important;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 12px 24px;
    border-radius: 50px;
}
.juju-quote-btn:hover {
    background: linear-gradient(135deg, #C9A889, #B8977A) !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(201, 168, 137, 0.4);
}
.juju-quote-btn.in-quote {
    background: linear-gradient(135deg, #C9A889, #B8977A) !important;
}

/* ==========================================
   Floating Quote Button
   ========================================== */
.juju-floating-quote {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: linear-gradient(135deg, #2d2d2d, #3d3d3d);
    color: white;
    padding: 14px 24px;
    border-radius: 50px;
    text-decoration: none;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 9999;
    transition: all 0.3s ease;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.05em;
}
.juju-floating-quote:hover {
    background: linear-gradient(135deg, #C9A889, #B8977A);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 15px 50px rgba(201, 168, 137, 0.4);
}
.juju-floating-count {
    background: white;
    color: #2d2d2d;
    min-width: 26px;
    height: 26px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 12px;
}

/* ==========================================
   Quote Form Page Wrapper
   ========================================== */
.juju-quote-form-wrapper {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem;
}

.juju-quote-form-wrapper > h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.5rem;
    font-weight: 300;
    font-style: italic;
    color: #1a1a1a;
    text-align: center;
    margin-bottom: 3rem;
}

/* ==========================================
   Products Section
   ========================================== */
.juju-quote-products {
    background: #FFFFFF;
    border-radius: 20px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

.juju-quote-products h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.5rem;
    font-weight: 400;
    font-style: italic;
    color: #1a1a1a;
    margin: 0 0 1.5rem 0;
    padding-bottom: 1rem;
    border-bottom: 1px solid #E8DDD3;
}

/* Products Table */
.juju-products-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1.5rem;
}

.juju-products-table th {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #8B8178;
    padding: 1rem;
    text-align: left;
    background: #FAF8F5;
    border-bottom: 2px solid #E8DDD3;
}

.juju-products-table th:first-child {
    border-radius: 12px 0 0 0;
}

.juju-products-table th:last-child {
    border-radius: 0 12px 0 0;
}

.juju-products-table td {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    color: #2d2d2d;
    padding: 1.25rem 1rem;
    border-bottom: 1px solid #E8DDD3;
    vertical-align: middle;
}

.juju-products-table tr:last-child td {
    border-bottom: none;
}

.juju-products-table .product-name {
    font-weight: 500;
}

.juju-products-table .product-price {
    color: #C9A889;
    font-weight: 600;
}

/* Quantity Input */
.juju-quantity {
    width: 70px;
    padding: 0.75rem 1rem;
    border: 1.5px solid #E8DDD3;
    border-radius: 8px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    text-align: center;
    background: #FAF8F5;
    transition: all 0.3s ease;
}

.juju-quantity:focus {
    outline: none;
    border-color: #C9A889;
    background: #FFFFFF;
}

/* Remove Button */
.juju-remove-item {
    background: transparent;
    color: #8B8178;
    border: 1.5px solid #E8DDD3;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.juju-remove-item:hover {
    background: #F5EDE8;
    border-color: #C9A889;
    color: #8B7355;
}

/* Add More Link */
.juju-add-more {
    text-align: center;
    margin: 0;
    padding-top: 1rem;
    border-top: 1px solid #E8DDD3;
}

.juju-add-more a {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.85rem;
    font-weight: 500;
    color: #C9A889;
    text-decoration: none;
    transition: all 0.3s ease;
}

.juju-add-more a:hover {
    color: #B8977A;
}

/* ==========================================
   Quote Form
   ========================================== */
.juju-quote-form {
    background: #FFFFFF;
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

.juju-quote-form h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.5rem;
    font-weight: 400;
    font-style: italic;
    color: #1a1a1a;
    margin: 0 0 1.5rem 0;
    padding-bottom: 1rem;
    border-bottom: 1px solid #E8DDD3;
}

.juju-quote-form h3:not(:first-child) {
    margin-top: 2.5rem;
}

/* Form Rows */
.juju-form-row {
    margin-bottom: 1.5rem;
}

.juju-form-row label {
    display: block;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    color: #2d2d2d;
    margin-bottom: 0.5rem;
}

.juju-form-row .required {
    color: #C9A889;
}

.juju-form-row input[type="text"],
.juju-form-row input[type="email"],
.juju-form-row input[type="tel"],
.juju-form-row input[type="number"],
.juju-form-row textarea {
    width: 100%;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.95rem;
    padding: 1rem 1.25rem;
    border: 1.5px solid #E8DDD3;
    border-radius: 12px;
    background: #FAF8F5;
    transition: all 0.3s ease;
    color: #2d2d2d;
}

.juju-form-row input:focus,
.juju-form-row textarea:focus {
    outline: none;
    border-color: #C9A889;
    background: #FFFFFF;
    box-shadow: 0 0 0 4px rgba(201, 168, 137, 0.1);
}

.juju-form-row input::placeholder,
.juju-form-row textarea::placeholder {
    color: #B8B0A8;
}

.juju-form-row small {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.75rem;
    color: #8B8178;
    display: block;
    margin-top: 0.5rem;
}

.juju-form-row textarea {
    resize: vertical;
    min-height: 120px;
}

/* Form Submit */
.juju-form-submit {
    text-align: center;
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid #E8DDD3;
}

.juju-submit-btn {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    background: linear-gradient(135deg, #2d2d2d, #3d3d3d);
    color: white;
    border: none;
    padding: 1.1rem 3rem;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.juju-submit-btn:hover {
    background: linear-gradient(135deg, #C9A889, #B8977A);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(201, 168, 137, 0.4);
}

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

.juju-form-notice {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.8rem;
    color: #8B8178;
    margin-top: 1rem;
}

/* ==========================================
   Datepicker Styling
   ========================================== */
.ui-datepicker {
    background: white;
    border: 1px solid #E8DDD3;
    border-radius: 16px;
    padding: 15px;
    box-shadow: 0 15px 50px rgba(0,0,0,0.15);
    z-index: 9999 !important;
    font-family: 'Montserrat', sans-serif;
    width: 280px !important;
}

.ui-datepicker-header {
    background: none !important;
    border: none !important;
    padding: 0 0 10px 0;
    margin-bottom: 10px;
    border-bottom: 1px solid #E8DDD3 !important;
    position: relative;
}

.ui-datepicker-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.1rem;
    font-weight: 500;
    font-style: italic;
    color: #2d2d2d;
    text-align: center;
}

.ui-datepicker-prev,
.ui-datepicker-next {
    cursor: pointer;
    position: absolute !important;
    top: 0 !important;
    width: 28px !important;
    height: 28px !important;
    background: #FAF8F5 !important;
    border: 1px solid #E8DDD3 !important;
    border-radius: 50% !important;
    transition: all 0.2s ease;
}

.ui-datepicker-prev {
    left: 0 !important;
}

.ui-datepicker-next {
    right: 0 !important;
}

.ui-datepicker-prev:hover,
.ui-datepicker-next:hover {
    background: #E8DDD3 !important;
    border-color: #C9A889 !important;
}

.ui-datepicker-prev span,
.ui-datepicker-next span {
    display: block !important;
    position: absolute !important;
    left: 50% !important;
    top: 50% !important;
    transform: translate(-50%, -50%) !important;
    margin: 0 !important;
    background: none !important;
    text-indent: 0 !important;
    font-size: 0 !important;
}

.ui-datepicker-prev span::after,
.ui-datepicker-next span::after {
    font-size: 16px;
    color: #8B8178;
    font-weight: bold;
}

.ui-datepicker-prev span::after {
    content: '‹';
}

.ui-datepicker-next span::after {
    content: '›';
}

.ui-datepicker table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
    table-layout: fixed;
}

.ui-datepicker th {
    font-size: 0.65rem;
    font-weight: 600;
    color: #8B8178;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    padding: 8px 0;
    text-align: center;
}

.ui-datepicker td {
    padding: 2px;
    text-align: center;
}

.ui-datepicker td a,
.ui-datepicker td span {
    display: block !important;
    width: 30px !important;
    height: 30px !important;
    line-height: 30px !important;
    margin: 0 auto !important;
    text-align: center !important;
    border-radius: 50%;
    font-size: 0.8rem;
    color: #2d2d2d;
    transition: all 0.2s ease;
    text-decoration: none;
    padding: 0 !important;
}

.ui-datepicker td a:hover {
    background: #FAF8F5;
    color: #C9A889;
}

.ui-datepicker td a.ui-state-active {
    background: linear-gradient(135deg, #C9A889, #B8977A) !important;
    color: white !important;
}

.ui-datepicker td.ui-datepicker-unselectable span {
    color: #D1CCC6;
}

.ui-datepicker td.ui-datepicker-today a {
    border: 1px solid #C9A889;
}

.ui-datepicker .ui-state-disabled {
    opacity: 0.4;
}

/* Hide default jQuery UI icons */
.ui-datepicker .ui-icon {
    background-image: none !important;
    text-indent: 0 !important;
}

/* ==========================================
   Empty Quote State
   ========================================== */
.juju-empty-quote {
    text-align: center;
    padding: 5rem 2rem;
    background: #FFFFFF;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    max-width: 500px;
    margin: 0 auto;
}

.juju-empty-quote::before {
    content: '';
    display: block;
    width: 80px;
    height: 80px;
    margin: 0 auto 2rem;
    background: linear-gradient(135deg, #FAF8F5, #F5F0EB);
    border-radius: 50%;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23C9A889' stroke-width='1.5'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 40px;
}

.juju-empty-quote h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2rem;
    font-weight: 400;
    font-style: italic;
    color: #1a1a1a;
    margin: 0 0 1rem 0;
}

.juju-empty-quote p {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.95rem;
    color: #8B8178;
    margin-bottom: 2rem;
    line-height: 1.7;
}

.juju-empty-quote .button {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    background: linear-gradient(135deg, #2d2d2d, #3d3d3d);
    color: white;
    border: none;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.juju-empty-quote .button:hover {
    background: linear-gradient(135deg, #C9A889, #B8977A);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(201, 168, 137, 0.4);
    color: white;
}

/* ==========================================
   Login Prompt
   ========================================== */
.juju-login-prompt {
    text-align: center;
    padding: 5rem 2rem;
    background: #FFFFFF;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    max-width: 500px;
    margin: 0 auto;
}

.juju-login-prompt::before {
    content: '';
    display: block;
    width: 80px;
    height: 80px;
    margin: 0 auto 2rem;
    background: linear-gradient(135deg, #FAF8F5, #F5F0EB);
    border-radius: 50%;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23C9A889' stroke-width='1.5'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M16 7a4 4 0 11-8 0 4 4 0 018 0zM12 14a7 7 0 00-7 7h14a7 7 0 00-7-7z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 40px;
}

.juju-login-prompt h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2rem;
    font-weight: 400;
    font-style: italic;
    color: #1a1a1a;
    margin: 0 0 1rem 0;
}

.juju-login-prompt p {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.95rem;
    color: #8B8178;
    margin-bottom: 2rem;
    line-height: 1.7;
}

.juju-login-prompt .button {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    background: linear-gradient(135deg, #2d2d2d, #3d3d3d);
    color: white;
    border: none;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.juju-login-prompt .button:hover {
    background: linear-gradient(135deg, #C9A889, #B8977A);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(201, 168, 137, 0.4);
    color: white;
}

/* ==========================================
   Login Wall (Content Restriction)
   ========================================== */
.juju-login-wall {
    position: relative;
    margin-top: -100px;
    padding-top: 100px;
}

.juju-login-wall-gradient {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 150px;
    background: linear-gradient(transparent, #FAF8F5);
    pointer-events: none;
}

.juju-login-wall-content {
    text-align: center;
    padding: 4rem 2.5rem;
    background: #FFFFFF;
    border: 1px solid #E8DDD3;
    border-radius: 24px;
    max-width: 520px;
    margin: 0 auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
}

.juju-login-wall-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, #FAF8F5, #F5F0EB);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #C9A889;
}

.juju-login-wall-icon svg {
    width: 32px;
    height: 32px;
}

.juju-login-wall-content h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.8rem;
    font-weight: 400;
    font-style: italic;
    color: #1a1a1a;
    margin: 0 0 0.75rem 0;
    line-height: 1.3;
}

.juju-login-wall-content p {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.95rem;
    color: #8B8178;
    margin-bottom: 2rem;
    line-height: 1.7;
}

.juju-login-wall-content small {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.8rem;
    color: #B8B0A8;
    display: block;
}

.juju-login-wall-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.juju-btn-primary,
.juju-btn-secondary {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s;
    display: inline-block;
}

.juju-btn-primary {
    background: linear-gradient(135deg, #2d2d2d, #3d3d3d);
    color: white;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.juju-btn-primary:hover {
    background: linear-gradient(135deg, #C9A889, #B8977A);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(201, 168, 137, 0.4);
    color: white;
}

.juju-btn-secondary {
    background: transparent;
    color: #2d2d2d;
    border: 1.5px solid #E8DDD3;
}

.juju-btn-secondary:hover {
    background: #FAF8F5;
    border-color: #C9A889;
    color: #C9A889;
}

/* ==========================================
   Restriction Notice
   ========================================== */
.juju-restriction-notice {
    background: linear-gradient(135deg, #FAF8F5, #F5F0EB);
    border: 1px solid #E8DDD3;
    color: #6B5D4D;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    line-height: 1.5;
}

.juju-restriction-notice svg {
    flex-shrink: 0;
    color: #C9A889;
}

/* ==========================================
   Status Badge
   ========================================== */
.juju-status-badge {
    display: inline-block;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 0.4rem 1rem;
    border-radius: 50px;
}

/* ==========================================
   Quote Menu Item Count
   ========================================== */
.juju-quote-count {
    background: #C9A889;
    color: white;
    padding: 3px 10px;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 600;
    margin-left: 8px;
}

/* ==========================================
   Mobile Responsive
   ========================================== */
@media (max-width: 768px) {
    .juju-quote-form-wrapper {
        padding: 1rem;
    }
    
    .juju-quote-form-wrapper > h2 {
        font-size: 2rem;
        margin-bottom: 2rem;
    }
    
    .juju-quote-products,
    .juju-quote-form {
        padding: 1.5rem;
        border-radius: 16px;
    }
    
    .juju-products-table {
        display: block;
    }
    
    .juju-products-table thead {
        display: none;
    }
    
    .juju-products-table tbody {
        display: block;
    }
    
    .juju-products-table tr {
        display: flex;
        flex-wrap: wrap;
        padding: 1rem 0;
        border-bottom: 1px solid #E8DDD3;
        align-items: center;
    }
    
    .juju-products-table tr:last-child {
        border-bottom: none;
    }
    
    .juju-products-table td {
        padding: 0.5rem;
        border: none;
    }
    
    .juju-products-table .product-name {
        flex: 1 1 100%;
        font-weight: 600;
        margin-bottom: 0.5rem;
    }
    
    .juju-products-table .product-quantity {
        flex: 0 0 auto;
    }
    
    .juju-products-table .product-price {
        flex: 1;
        text-align: right;
    }
    
    .juju-products-table .product-remove {
        flex: 0 0 auto;
    }
    
    .juju-login-wall-buttons {
        flex-direction: column;
    }
    
    .juju-floating-quote {
        bottom: 20px;
        right: 20px;
        padding: 12px 18px;
    }
    
    .juju-floating-text {
        display: none;
    }
    
    .juju-empty-quote,
    .juju-login-prompt {
        padding: 3rem 1.5rem;
    }
    
    .juju-empty-quote h2,
    .juju-login-prompt h2 {
        font-size: 1.6rem;
    }
}
