/* Modern Quote Page Styles - Matching Service Selection Design */

/* Service Type Badge - Added for Service Integration */
.service-type-badge {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid rgba(255, 141, 0, 0.3);
    border-radius: 20px;
    padding: 8px 18px;
    margin-top: 15px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    animation: fadeIn 0.8s ease-out;
}

.service-type-badge:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

/* UK Postcode Auto-Lookup Feature */
.ywq-address-wrapper {
    display: flex;
    align-items: center;
    position: relative;
    width: 100%;
}

.ywq-address-wrapper input {
    flex-grow: 1;
}

/* Hide postcode lookup buttons - we now use automatic lookup */
.ywq-postcode-lookup {
    display: none !important;
}

/* Loading indicator for automatic postcode lookup */
.ywq-postcode-loading {
    margin-left: 10px !important;
    padding: 4px 8px !important;
    font-size: 12px !important;
    color: #666 !important;
    white-space: nowrap !important;
    animation: ywq-pulse 1.5s infinite !important;
}

@keyframes ywq-pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

/* Postcode validation styles */
.ywq-address-wrapper input.postcode-valid {
    border-color: #4CAF50 !important;
    background-color: rgba(76, 175, 80, 0.05) !important;
}

.ywq-address-wrapper input.postcode-invalid {
    border-color: #f44336 !important;
    background-color: rgba(244, 67, 54, 0.05) !important;
}

.service-icon {
    font-size: 1.5em;
    margin-right: 12px;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

.service-name {
    font-weight: 700;
    color: #2a5298;
    font-size: 1.1em;
    letter-spacing: -0.01em;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Main Quote Container with Blue-to-Orange Gradient */
.yourway-quotes-page {
    min-height: 100vh;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 50%, #ff8d00 100%);
    padding: 60px 0;
    font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
    position: relative;
    overflow-x: hidden;
    width: 100vw !important;
    max-width: none !important;
    margin-left: calc(-50vw + 50%) !important;
    margin-right: calc(-50vw + 50%) !important;
}

/* Background Pattern Overlay */
.yourway-quotes-page::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
    z-index: 0;
}

/* Quote Form Container */
.quote-form-container {
    max-width: none !important;
    width: 100% !important;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    padding: 0 40px;
    box-sizing: border-box;
}

/* Quote Header */
.quote-header {
    text-align: center;
    margin-bottom: 60px;
    animation: fadeInUp 0.8s ease-out;
}

.quote-header h1 {
    color: #ffffff;
    font-size: 3.5rem;
    margin: 0 0 20px 0;
    font-weight: 800;
    text-shadow: 0 4px 8px rgba(0,0,0,0.3);
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.quote-header p {
    color: rgba(255,255,255,0.9);
    font-size: 1.25rem;
    margin: 0 auto;
    max-width: 650px;
    font-weight: 400;
    line-height: 1.6;
}

/* Quote Form Card */
.quote-form-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 40px;
    margin: 0 auto 40px auto;
    max-width: 800px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    position: relative;
    overflow: hidden;
    animation: slideInUp 0.6s ease-out;
}

.quote-form-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,141,0,0.1), transparent);
    transition: left 0.6s ease;
}

.quote-form-card:hover::before {
    left: 100%;
}

/* Quote Form Fields */
.quote-form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 25px;
}

.quote-form-field {
    position: relative;
}

.quote-form-field label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #2c3e50;
    font-size: 1rem;
    letter-spacing: -0.01em;
}

.quote-form-field input,
.quote-form-field select,
.quote-form-field textarea {
    width: 100%;
    padding: 15px 18px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 1rem;
    font-family: inherit;
    background: rgba(255, 255, 255, 0.9);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-sizing: border-box;
}

.quote-form-field input:focus,
.quote-form-field select:focus,
.quote-form-field textarea:focus {
    outline: none;
    border-color: #ff8d00;
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 0 0 3px rgba(255,141,0,0.1);
    transform: translateY(-2px);
}

.quote-form-field textarea {
    resize: vertical;
    min-height: 120px;
}

.quote-form-field small {
    display: block;
    margin-top: 4px;
    color: #64748b;
    font-size: 0.9rem;
}

.quote-form-field.full-width {
    grid-column: 1 / -1;
}

/* Checkbox Styling */
.ywq-checkbox-label {
    display: flex !important;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    padding: 15px;
    background: rgba(255, 255, 255, 0.5);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.ywq-checkbox-label:hover {
    background: rgba(255, 255, 255, 0.8);
    border-color: #ff8d00;
}

.ywq-checkbox-label input[type="checkbox"] {
    width: auto !important;
    margin: 0;
    accent-color: #ff8d00;
    transform: scale(1.2);
}

.ywq-checkbox-text {
    flex: 1;
    color: #2c3e50;
}

.ywq-checkbox-text strong {
    color: #ff8d00;
    font-weight: 600;
}

/* Quote Summary Card */
.quote-summary-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 30px;
    margin: 40px auto;
    max-width: 600px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    animation: slideInUp 0.8s ease-out;
}

.quote-details-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid rgba(0,0,0,0.1);
}

.quote-details-row:last-child {
    border-bottom: none;
    font-weight: 700;
    font-size: 1.2rem;
    color: #ff8d00;
    padding-top: 20px;
    margin-top: 10px;
    border-top: 2px solid rgba(255,141,0,0.2);
}

.quote-details-label {
    color: #64748b;
    font-weight: 500;
}

.quote-details-value {
    color: #2c3e50;
    font-weight: 600;
}

/* Quote Actions */
.quote-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    margin: 40px 0;
    animation: fadeInUp 1s ease-out;
}

/* Buttons */
.btn {
    padding: 18px 36px;
    border: none;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 1.1rem;
    letter-spacing: 0.01em;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    font-family: inherit;
}

.btn-primary {
    background: linear-gradient(135deg, #ff8d00, #ff6b00);
    color: white;
    border: 2px solid transparent;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #ff6b00, #ff5722);
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(255,141,0,0.3);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.9);
    color: #374151;
    border: 2px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 1);
    color: #1f2937;
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(0,0,0,0.2);
}

.btn:active {
    transform: translateY(-1px);
}

/* Quote Steps */
.quote-steps {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
    animation: slideInUp 0.6s ease-out;
}

.quote-step {
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    padding: 15px 25px;
    margin: 0 10px;
    text-align: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.quote-step.active {
    background: linear-gradient(135deg, #ff8d00, #ff6b00);
    color: white;
    border-color: #ff8d00;
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(255,141,0,0.3);
}

.quote-step-number {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.quote-step-label {
    font-size: 0.9rem;
    font-weight: 500;
}

/* Loading state */
.quote-form-card.loading {
    opacity: 0.8;
    pointer-events: none;
    position: relative;
}

.quote-form-card.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    border: 4px solid rgba(255,141,0,0.3);
    border-top: 4px solid #ff8d00;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    transform: translate(-50%, -50%);
    z-index: 10;
}

/* Error and Success Messages */
.quote-message {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 20px;
    margin: 20px auto;
    max-width: 600px;
    text-align: center;
    backdrop-filter: blur(10px);
    animation: slideInUp 0.5s ease-out;
}

.quote-message.success {
    border: 2px solid #10b981;
    color: #065f46;
}

.quote-message.error {
    border: 2px solid #ef4444;
    color: #7f1d1d;
}

.quote-message.warning {
    border: 2px solid #f59e0b;
    color: #92400e;
}

/* Keyframe animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .quote-form-row {
        grid-template-columns: 1fr;
    }
    
    .quote-header h1 {
        font-size: 3rem;
    }
    
    .quote-form-card {
        padding: 30px;
    }
}

@media (max-width: 768px) {
    .yourway-quotes-page {
        padding: 40px 0;
    }
    
    .quote-form-container {
        padding: 0 20px;
    }
    
    .quote-header h1 {
        font-size: 2.5rem;
    }
    
    .quote-header p {
        font-size: 1.1rem;
    }
    
    .quote-form-card {
        padding: 25px;
    }
    
    .quote-summary-card {
        padding: 25px;
    }
    
    .quote-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
    
    .quote-steps {
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .quote-step {
        margin: 5px;
        padding: 12px 20px;
    }
}

@media (max-width: 480px) {
    .yourway-quotes-page {
        padding: 30px 0;
    }
    
    .quote-form-container {
        padding: 0 15px;
    }
    
    .quote-header h1 {
        font-size: 2rem;
    }
    
    .quote-header p {
        font-size: 1rem;
    }
    
    .quote-form-card {
        padding: 20px;
    }
    
    .quote-summary-card {
        padding: 20px;
    }
    
    .quote-form-field input,
    .quote-form-field select,
    .quote-form-field textarea {
        padding: 12px 15px;
    }
    
    .btn {
        padding: 15px 30px;
        font-size: 1rem;
    }
    
    .quote-steps {
        justify-content: center;
    }
    
    .quote-step {
        padding: 10px 15px;
        margin: 0 5px;
    }
    
    .quote-step-number {
        font-size: 1.2rem;
    }
    
    .quote-step-label {
        font-size: 0.8rem;
    }
}

/* Additional utility classes */
.text-center {
    text-align: center;
}

.mb-20 {
    margin-bottom: 20px;
}

.mb-30 {
    margin-bottom: 30px;
}

.mt-20 {
    margin-top: 20px;
}

.mt-30 {
    margin-top: 30px;
}

/* Override WordPress theme constraints */
.yourway-quotes-page * {
    box-sizing: border-box;
}

.yourway-quotes-page .container,
.yourway-quotes-page .row,
.yourway-quotes-page .col,
.yourway-quotes-page .wrapper {
    max-width: none !important;
    width: auto !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Ensure full width override for all WordPress themes */
body.page .yourway-quotes-page,
body.single .yourway-quotes-page,
.site-content .yourway-quotes-page,
.content-area .yourway-quotes-page,
#primary .yourway-quotes-page,
#content .yourway-quotes-page {
    width: 100vw !important;
    max-width: none !important;
    margin-left: calc(-50vw + 50%) !important;
    margin-right: calc(-50vw + 50%) !important;
}

/* Google Maps Autocomplete Enhancements */
.ywq-autocomplete-wrapper {
    position: relative;
    display: inline-block;
    width: 100%;
}

.ywq-autocomplete-wrapper input.google-autocomplete-active {
    padding-right: 40px;
    background-color: #fff;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.ywq-autocomplete-wrapper input.google-autocomplete-active:focus {
    border-color: #1e3c72;
    box-shadow: 0 0 0 3px rgba(30, 60, 114, 0.1);
    outline: none;
}

.ywq-autocomplete-wrapper input.address-selected {
    border-color: #22c55e;
    background-color: #f0fdf4;
}

.ywq-autocomplete-icon {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
    color: #6b7280;
    pointer-events: none;
    transition: all 0.3s ease;
}

.ywq-autocomplete-wrapper.searching .ywq-autocomplete-icon {
    animation: pulse 1s infinite;
}

.ywq-autocomplete-wrapper.selected .ywq-autocomplete-icon.success {
    color: #22c55e;
    transform: translateY(-50%) scale(1.2);
}

.address-confirmation {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #22c55e;
    color: white;
    padding: 8px 12px;
    border-radius: 0 0 8px 8px;
    font-size: 12px;
    z-index: 10;
    animation: slideDown 0.3s ease;
}

.address-confirmation small {
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Autocomplete dropdown styling */
.pac-container {
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    border: 1px solid #e1e5e9;
    margin-top: 4px;
    font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
}

.pac-item {
    padding: 12px 16px;
    border-bottom: 1px solid #f3f4f6;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.pac-item:hover {
    background-color: #f8fafc;
}

.pac-item:last-child {
    border-bottom: none;
}

.pac-item-selected {
    background-color: #1e3c72 !important;
    color: white;
}

.pac-matched {
    font-weight: 600;
    color: #1e3c72;
}

.pac-item-selected .pac-matched {
    color: white;
}

/* Loading animation */
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile responsiveness for autocomplete */
@media (max-width: 768px) {
    .pac-container {
        max-width: calc(100vw - 40px);
    }
    
    .address-confirmation {
        font-size: 11px;
        padding: 6px 10px;
    }
}

/* Step visibility and navigation */
.ywq-step {
    display: none;
    min-height: 400px;
    scroll-margin-top: 100px;
}

.ywq-step.ywq-step-active {
    display: block;
    animation: fadeInUp 0.4s ease-out;
}

/* Smooth scrolling for better navigation */
html {
    scroll-behavior: smooth;
}

/* Step transition improvements */
@keyframes stepFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.ywq-step.ywq-step-active {
    animation: stepFadeIn 0.5s ease-out;
}

/* Error field styling */
.ywq-error {
    border-color: #ef4444 !important;
    background-color: rgba(239, 68, 68, 0.05) !important;
}

.ywq-error:focus {
    border-color: #ef4444 !important;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1) !important;
}

/* Quote Options Styling - Compact Design */

.ywq-quote-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 25px 0;
    animation: fadeInUp 0.8s ease-out;
}

.ywq-quote-option {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.ywq-quote-option:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.25);
    border-color: #ff8d00;
}

.ywq-quote-option.ywq-popular {
    border-color: #ff8d00;
    background: linear-gradient(135deg, rgba(255, 141, 0, 0.1) 0%, rgba(255, 255, 255, 0.95) 50%);
    box-shadow: 0 10px 30px rgba(255, 141, 0, 0.2);
}

.ywq-popular-badge {
    position: absolute;
    top: -2px;
    right: 15px;
    background: linear-gradient(135deg, #ff8d00 0%, #ff6b35 100%);
    color: white;
    padding: 6px 15px;
    border-radius: 0 0 12px 12px;
    font-weight: 700;
    font-size: 0.8em;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 12px rgba(255, 141, 0, 0.4);
}

.ywq-option-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.ywq-option-header h4 {
    color: #1e3c72;
    font-size: 0.9em;
    font-weight: 400;
    margin: 0;
    flex: 1;
    letter-spacing: -0.02em;
}

.ywq-option-price {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white;
    font-size: 0.85em;
    font-weight: 400;
    padding: 8px 12px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 6px rgba(30, 60, 114, 0.2);
    letter-spacing: -0.01em;
    margin: 10px 0;
}

.ywq-option-price::before {
    content: attr(data-total-label);
    font-size: 0.75em;
    font-weight: 400;
    display: block;
    margin-bottom: 2px;
    opacity: 0.8;
}

.ywq-quote-option p {
    display: none; /* Hide the description text */
}

/* Service Features Styling */
.ywq-service-features {
    margin: 15px 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.ywq-feature {
    font-size: 0.8em;
    color: #555;
    display: flex;
    align-items: center;
    line-height: 1.3;
}

.ywq-feature:before {
    content: '';
    width: 4px;
    height: 4px;
    background: #ff8d00;
    border-radius: 50%;
    margin-right: 8px;
    flex-shrink: 0;
}

.ywq-quote-option[data-option="express"] .ywq-feature {
    color: #333;
    font-weight: 500;
}

.ywq-select-option {
    width: 100%;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 10px;
    font-weight: 400;
    font-size: 0.85em;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.ywq-select-option:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(30, 60, 114, 0.4);
}

.ywq-quote-option[data-option="express"] .ywq-select-option {
    background: linear-gradient(135deg, #ff8d00 0%, #ff6b35 100%);
}

.ywq-quote-option[data-option="express"] .ywq-select-option:hover {
    box-shadow: 0 6px 15px rgba(255, 141, 0, 0.4);
}



/* Animations */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* File Upload Styles */
.ywq-file-upload-area {
    position: relative;
    border: 2px dashed #d1d5db;
    border-radius: 12px;
    padding: 30px 20px;
    background: #f9fafb;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 15px;
}

.ywq-file-upload-area:hover {
    border-color: #667eea;
    background: #f0f4ff;
}

.ywq-file-upload-area.drag-over {
    border-color: #667eea;
    background: #e0e7ff;
    transform: scale(1.02);
}

.ywq-file-input {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.ywq-file-upload-text {
    text-align: center;
    pointer-events: none;
}

.ywq-upload-icon {
    font-size: 2.5em;
    display: block;
    margin-bottom: 10px;
}

.ywq-upload-message {
    display: block;
    font-weight: 600;
    color: #374151;
    margin-bottom: 5px;
}

.ywq-upload-message + small {
    color: #6b7280;
    font-size: 0.85em;
}

/* File Preview Grid */
.ywq-file-preview {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.ywq-file-preview-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.ywq-file-preview-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.ywq-file-preview-image {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 8px;
}

.ywq-file-preview-remove {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(239, 68, 68, 0.9);
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
    transition: all 0.2s ease;
}

.ywq-file-preview-remove:hover {
    background: rgba(239, 68, 68, 1);
    transform: scale(1.1);
}

.ywq-file-preview-name {
    padding: 8px;
    font-size: 0.8em;
    color: #6b7280;
    text-align: center;
    border-top: 1px solid #e5e7eb;
    word-break: break-word;
}

/* Upload Progress */
.ywq-upload-progress {
    margin-top: 10px;
    padding: 10px;
    background: #f3f4f6;
    border-radius: 8px;
}

.progress-bar {
    width: 100%;
    height: 6px;
    background: #e5e7eb;
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 5px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea, #764ba2);
    transition: width 0.3s ease;
    width: 0%;
}

.progress-text {
    font-size: 0.9em;
    color: #6b7280;
    font-weight: 500;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .ywq-quote-options {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .ywq-quote-option {
        padding: 15px;
    }
    

    
    .ywq-file-preview {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    }
    
    .ywq-file-preview-image {
        height: 100px;
    }
    
    .ywq-file-upload-area {
        padding: 20px 15px;
    }
    
    .back-to-home .btn {
        padding: 16px 28px;
        font-size: 1rem;
    }
}

/* Back to Home Button Styles - Critical for Live Environment */
.back-to-home {
    text-align: center;
    animation: fadeInUp 1s ease-out;
    margin-top: 40px;
}

.back-to-home .btn {
    padding: 18px 36px;
    border: none;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 1.1rem;
    letter-spacing: 0.01em;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.back-to-home .btn-secondary {
    background: rgba(255, 255, 255, 0.9);
    color: #374151 !important;
    border: 2px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.back-to-home .btn-secondary:hover {
    background: rgba(255, 255, 255, 1);
    color: #1f2937 !important;
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(0,0,0,0.2);
    text-decoration: none;
}

.back-to-home .btn-secondary:active {
    transform: translateY(-1px);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =================================================================
   ENHANCED PHOTO UPLOAD STYLES - INTERACTIVE & MODERN
   ================================================================= */

/* Enhanced Upload Area with Interactive Effects */
.photo-upload-container {
    margin-top: 15px !important;
}

.photo-upload-area {
    border: 2px dashed #3498db !important;
    border-radius: 12px !important;
    padding: 40px 20px !important;
    text-align: center !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    background: #f8fbff !important;
    position: relative !important;
    overflow: hidden !important;
    margin: 15px 0 !important;
    min-height: 140px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.photo-upload-area::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: -100% !important;
    width: 100% !important;
    height: 100% !important;
    background: linear-gradient(90deg, transparent, rgba(52, 152, 219, 0.1), transparent) !important;
    transition: left 0.6s ease !important;
}

.photo-upload-area:hover {
    border-color: #2980b9 !important;
    background: #ecf4fd !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.2) !important;
}

.photo-upload-area:hover::before {
    left: 100% !important;
}

.photo-upload-area:active {
    transform: translateY(0) !important;
    box-shadow: 0 2px 8px rgba(52, 152, 219, 0.15) !important;
}

.upload-placeholder {
    position: relative !important;
    z-index: 1 !important;
}

.upload-placeholder .upload-icon {
    font-size: 3em !important;
    display: block !important;
    margin-bottom: 15px !important;
    color: #3498db !important;
    transition: all 0.3s ease !important;
}

.photo-upload-area:hover .upload-placeholder .upload-icon {
    transform: scale(1.1) !important;
    color: #2980b9 !important;
    animation: uploadPulse 2s ease-in-out infinite !important;
}

.upload-placeholder p {
    margin: 0 0 8px 0 !important;
    font-weight: 600 !important;
    color: #2c3e50 !important;
    font-size: 18px !important;
}

.upload-placeholder small {
    color: #7f8c8d !important;
    font-size: 14px !important;
    display: block !important;
    margin-top: 5px !important;
}

/* Drag and Drop States */
.photo-upload-area.drag-over {
    border-color: #27ae60 !important;
    background: #e8f8f5 !important;
    transform: translateY(-2px) scale(1.02) !important;
    box-shadow: 0 6px 20px rgba(39, 174, 96, 0.3) !important;
}

.photo-upload-area.drag-over .upload-placeholder .upload-icon {
    color: #27ae60 !important;
    transform: scale(1.15) rotate(5deg) !important;
}

.photo-upload-area.drag-over::before {
    background: linear-gradient(90deg, transparent, rgba(39, 174, 96, 0.15), transparent) !important;
    left: 100% !important;
}

/* Click Feedback */
.photo-upload-area.clicking {
    transform: scale(0.98) !important;
    box-shadow: 0 1px 5px rgba(52, 152, 219, 0.3) !important;
}

/* Animations */
@keyframes uploadPulse {
    0%, 100% { 
        opacity: 1; 
        transform: scale(1.1);
    }
    50% { 
        opacity: 0.8; 
        transform: scale(1.15);
    }
}

@keyframes fadeInScale {
    0% {
        opacity: 0;
        transform: scale(0.8) translateY(20px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Upload Status Messages */
.upload-status {
    margin: 10px 0 !important;
    padding: 12px 16px !important;
    border-radius: 8px !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    animation: slideInUp 0.3s ease-out !important;
}

.upload-status.success {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%) !important;
    color: #155724 !important;
    border: 1px solid #c3e6cb !important;
}

.upload-status.error {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%) !important;
    color: #721c24 !important;
    border: 1px solid #f5c6cb !important;
}

.upload-status.info {
    background: linear-gradient(135deg, #d1ecf1 0%, #bee5eb 100%) !important;
    color: #0c5460 !important;
    border: 1px solid #bee5eb !important;
}

/* Enhanced Photo Preview Container */
.photo-preview-container {
    margin-top: 20px !important;
    padding: 20px !important;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%) !important;
    border-radius: 12px !important;
    border: 1px solid #dee2e6 !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05) !important;
    animation: slideInUp 0.5s ease-out !important;
}

.photo-preview-container h4 {
    margin: 0 0 15px 0 !important;
    font-size: 16px !important;
    color: #2c3e50 !important;
    font-weight: 600 !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
}

.photo-preview-container h4::before {
    content: "���" !important;
    font-size: 18px !important;
}

/* Enhanced Photo Thumbnails */
.photo-thumbnails {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)) !important;
    gap: 15px !important;
    margin-bottom: 15px !important;
}

.photo-thumbnail {
    position: relative !important;
    background: white !important;
    border-radius: 10px !important;
    overflow: hidden !important;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1) !important;
    transition: all 0.3s ease !important;
    border: 2px solid transparent !important;
    animation: fadeInScale 0.4s ease-out !important;
}

.photo-thumbnail:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 5px 20px rgba(0,0,0,0.15) !important;
    border-color: #3498db !important;
}

.photo-thumbnail img {
    width: 100% !important;
    height: 80px !important;
    object-fit: cover !important;
    transition: transform 0.3s ease !important;
}

.photo-thumbnail:hover img {
    transform: scale(1.05) !important;
}

.photo-info {
    padding: 8px !important;
    background: white !important;
}

.photo-name {
    display: block !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    color: #2c3e50 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    margin-bottom: 2px !important;
}

.photo-size {
    font-size: 10px !important;
    color: #6c757d !important;
    font-weight: 500 !important;
}

/* Enhanced Remove Photo Button */
.remove-photo {
    position: absolute !important;
    top: 5px !important;
    right: 5px !important;
    width: 24px !important;
    height: 24px !important;
    border: none !important;
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%) !important;
    color: white !important;
    border-radius: 50% !important;
    cursor: pointer !important;
    font-size: 14px !important;
    font-weight: bold !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 2px 5px rgba(231, 76, 60, 0.3) !important;
}

.remove-photo:hover {
    background: linear-gradient(135deg, #c0392b 0%, #a93226 100%) !important;
    transform: scale(1.1) !important;
    box-shadow: 0 3px 10px rgba(231, 76, 60, 0.5) !important;
}

/* Enhanced Clear All Button */
.btn-link {
    background: linear-gradient(135deg, #6c757d 0%, #495057 100%) !important;
    color: white !important;
    border: none !important;
    padding: 8px 16px !important;
    border-radius: 20px !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 5px !important;
}

.btn-link:before {
    content: "���️" !important;
    font-size: 14px !important;
}

.btn-link:hover {
    background: linear-gradient(135deg, #495057 0%, #343a40 100%) !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2) !important;
}

/* Missing Animation for Upload Status */
@keyframes slideInUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}
