/* Quote Request Popup - Frontend Styles */
/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;600&display=swap');

:root {
    --qrp-primary: #008E8F;
    --qrp-primary-hover: #007A7B;
    --qrp-text-dark: #262626;
    --qrp-text-gray: #6D6D6D;
    --qrp-text-field: #4F4F4F;
    --qrp-placeholder: #808080;
    --qrp-border: #D1D1D1;
    --qrp-bg-inactive: #E7E7E7;
    --qrp-white: #FFFFFF;
    --qrp-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    --qrp-input-shadow: 0px 1px 2px 0px #1018280D;
    --qrp-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Trigger Button */
.qrp-trigger-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    background: var(--qrp-primary);
    color: var(--qrp-white);
    border: none;
    border-radius: 8px;
    font-family: 'Open Sans', sans-serif;
    font-size: 14px;
    font-weight: 600;
    line-height: 22px;
    cursor: pointer;
    transition: var(--qrp-transition);
}

.qrp-trigger-btn:hover {
    background: var(--qrp-primary-hover);
}

.qrp-trigger-btn svg {
    transition: transform 0.3s ease;
}

.qrp-trigger-btn:hover svg {
    transform: translateX(4px);
}

/* Popup Overlay */
.qrp-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 999999;
    opacity: 0;
    visibility: hidden;
    transition: var(--qrp-transition);
}

.qrp-overlay.qrp-active {
    opacity: 1;
    visibility: visible;
}

/* Popup Container */
.qrp-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    width: 90%;
    max-width: 480px;
    max-height: 90vh;
    background: var(--qrp-white);
    border-radius: 16px;
    box-shadow: var(--qrp-shadow);
    z-index: 1000000;
    opacity: 0;
    visibility: hidden;
    transition: var(--qrp-transition);
    overflow: hidden;
}

.qrp-popup.qrp-active {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

/* Popup Header with Background Pattern */
.qrp-popup-header {
    position: relative;
    padding: 24px 24px 0;
    background-image: url('http://prakash-site.local/wp-content/uploads/2025/12/Background-pattern-decorative-3.png');
    background-repeat: no-repeat;
    background-position: left top;
    background-size: auto;
}

/* Icon Container */
.qrp-popup-icon {
    width: 52px;
    height: 52px;
    background: var(--qrp-white);
    border: 1px solid #E7E7E7;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    box-shadow: 0px 1px 2px 0px #1018280D;
    padding: 14px;
    box-sizing: border-box;
}

.qrp-popup-icon img {
    width: 24px;
    height: 24px;
}

.qrp-popup-icon svg {
    display: none;
}

/* Title - Request a Quote */
.qrp-popup-title {
    font-family: 'Open Sans', sans-serif;
    font-weight: 600;
    font-size: 18px;
    line-height: 26px;
    letter-spacing: 0%;
    color: #262626;
    margin: 0 0 4px;
}

/* Subtitle */
.qrp-popup-subtitle {
    font-family: 'Open Sans', sans-serif;
    font-weight: 400;
    font-size: 14px;
    line-height: 22px;
    letter-spacing: 0%;
    color: #6D6D6D;
    margin: 0 0 20px;
}

/* Close Button */
.qrp-close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 36px;
    height: 36px;
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: var(--qrp-transition);
    color: #262626;
}

.qrp-close-btn:hover {
    background: #F5F5F5;
}

/* Step Indicator - Left Aligned */
.qrp-steps-indicator {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 0 24px 24px;
    gap: 0;
}

.qrp-step-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    flex: 0 0 auto;
}

/* Step Circle */
.qrp-step-circle {
    min-width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #E7E7E7;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Open Sans', sans-serif;
    font-weight: 600;
    font-size: 14px;
    line-height: 22px;
    letter-spacing: 0%;
    color: #262626;
    padding: 4px 11px;
    transition: var(--qrp-transition);
    position: relative;
    z-index: 2;
}

/* Active Step Circle */
.qrp-step-item.qrp-step-active .qrp-step-circle,
.qrp-step-item.qrp-step-completed .qrp-step-circle {
    background: #008E8F;
    color: #FFFFFF;
}

.qrp-step-item.qrp-step-completed .qrp-step-circle::after {
    content: '✓';
    font-size: 14px;
}

.qrp-step-item.qrp-step-completed .qrp-step-circle span {
    display: none;
}

/* Step Labels */
.qrp-step-label {
    font-family: 'Open Sans', sans-serif;
    font-weight: 400;
    font-size: 12px;
    line-height: 20px;
    letter-spacing: 0%;
    color: #262626;
    margin-top: 8px;
    text-align: center;
    white-space: nowrap;
}

.qrp-step-item.qrp-step-active .qrp-step-label {
    color: #262626;
    font-weight: 400;
}

/* Step Line */
.qrp-step-line {
    position: absolute;
    top: 15px;
    left: 100%;
    width: 60px;
    height: 2px;
    background: #E7E7E7;
    z-index: 1;
}

.qrp-step-item:last-child .qrp-step-line {
    display: none;
}

.qrp-step-item.qrp-step-completed .qrp-step-line {
    background: #008E8F;
}

/* Form Content */
.qrp-form-content {
    padding: 0 24px;
    max-height: calc(90vh - 280px);
    overflow-y: auto;
}

.qrp-step-panel {
    display: none;
}

.qrp-step-panel.qrp-active {
    display: block;
    animation: qrpFadeIn 0.3s ease;
}

@keyframes qrpFadeIn {
    from {
        opacity: 0;
        transform: translateX(20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Step Title - Contact Information */
.qrp-step-title {
    font-family: 'Open Sans', sans-serif;
    font-weight: 600;
    font-size: 16px;
    line-height: 24px;
    letter-spacing: 0%;
    color: #262626;
    margin: 0 0 7px;
}

/* Form Fields */
.qrp-form-group {
    margin-bottom: 16px;
}

/* Field Labels */
.qrp-form-label {
    display: block;
    font-family: 'Open Sans', sans-serif;
    font-weight: 600;
    font-size: 14px;
    line-height: 22px;
    letter-spacing: 0%;
    color: #4F4F4F;
    margin-bottom: 6px;
}

.qrp-form-label .qrp-required {
    color: #EF4444;
}

/* Input Fields */
.qrp-form-input,
.qrp-form-select,
.qrp-form-textarea {
    width: 100%;
    padding: 11px 14px;
    font-family: 'Open Sans', sans-serif;
    font-weight: 400;
    font-size: 14px;
    line-height: 22px;
    letter-spacing: 0%;
    color: var(--qrp-text-dark);
    background: var(--qrp-white);
    border: 1px solid #D1D1D1;
    border-radius: 7px;
    box-shadow: 0px 1px 2px 0px #1018280D;
    transition: var(--qrp-transition);
    box-sizing: border-box;
}

.qrp-form-input:focus,
.qrp-form-select:focus,
.qrp-form-textarea:focus {
    outline: none;
    border-color: var(--qrp-primary);
    box-shadow: 0 0 0 3px rgba(0, 142, 143, 0.1);
}

/* Placeholder Styling */
.qrp-form-input::placeholder,
.qrp-form-textarea::placeholder {
    font-family: 'Open Sans', sans-serif;
    font-weight: 400;
    font-size: 14px;
    line-height: 22px;
    letter-spacing: 0%;
    color: #808080;
}

.qrp-form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23808080' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 40px;
    cursor: pointer;
    color: #808080;
}

.qrp-form-select:valid {
    color: var(--qrp-text-dark);
}

.qrp-form-textarea {
    min-height: 100px;
    resize: vertical;
}

/* Phone Input with Country Code */
.qrp-phone-input-wrap {
    display: flex;
    gap: 8px;
}

.qrp-country-code {
    width: 75px;
    flex-shrink: 0;
}

.qrp-phone-number {
    flex: 1;
}

/* Radio Buttons */
.qrp-radio-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.qrp-radio-item {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.qrp-radio-input {
    width: 18px;
    height: 18px;
    border: 2px solid #D1D1D1;
    border-radius: 50%;
    appearance: none;
    cursor: pointer;
    position: relative;
    transition: var(--qrp-transition);
}

.qrp-radio-input:checked {
    border-color: var(--qrp-primary);
}

.qrp-radio-input:checked::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    background: var(--qrp-primary);
    border-radius: 50%;
}

.qrp-radio-label {
    font-family: 'Open Sans', sans-serif;
    font-weight: 400;
    font-size: 14px;
    line-height: 22px;
    color: var(--qrp-text-dark);
    cursor: pointer;
}

/* Footer Navigation - 64px gap from last field */
.qrp-form-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 24px 24px;
    margin-top: 40px;
    gap: 16px;
}

/* Buttons */
.qrp-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    font-family: 'Open Sans', sans-serif;
    font-weight: 600;
    font-size: 14px;
    line-height: 22px;
    letter-spacing: 0%;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--qrp-transition);
    border: none;
}

.qrp-btn-back {
    background: transparent;
    color: #6D6D6D;
    padding-left: 0;
}

.qrp-btn-back:hover {
    color: #262626;
}

.qrp-btn-back svg {
    transition: transform 0.3s ease;
}

.qrp-btn-back:hover svg {
    transform: translateX(-4px);
}

.qrp-btn-next,
.qrp-btn-submit {
    background: #008E8F;
    color: #FFFFFF;
    margin-left: auto;
}

.qrp-btn-next:hover,
.qrp-btn-submit:hover {
    background: #008E8F;
    color: #FFFFFF;
}

.qrp-btn-next svg,
.qrp-btn-submit svg {
    transition: transform 0.3s ease;
}

.qrp-btn-next:hover svg,
.qrp-btn-submit:hover svg {
    transform: translateX(4px);
}

.qrp-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

/* Success State */
.qrp-success-panel {
    display: none;
    text-align: center;
    padding: 40px 24px;
}

.qrp-success-panel.qrp-active {
    display: block;
    animation: qrpFadeIn 0.5s ease;
}

.qrp-success-icon {
    width: 72px;
    height: 72px;
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    animation: qrpSuccessPop 0.5s ease;
}

@keyframes qrpSuccessPop {
    0% {
        transform: scale(0);
        opacity: 0;
    }

    50% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.qrp-success-icon svg {
    width: 36px;
    height: 36px;
    color: white;
}

.qrp-success-title {
    font-family: 'Open Sans', sans-serif;
    font-size: 22px;
    font-weight: 600;
    color: var(--qrp-text-dark);
    margin: 0 0 12px;
}

.qrp-success-message {
    font-family: 'Open Sans', sans-serif;
    font-size: 14px;
    color: var(--qrp-text-gray);
    margin: 0 0 24px;
    line-height: 1.6;
}

.qrp-success-close-btn {
    background: #008E8F;
    color: #FFFFFF;
    padding: 12px 32px;
    border: none;
    border-radius: 8px;
    font-family: 'Open Sans', sans-serif;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--qrp-transition);
}

.qrp-success-close-btn:hover {
    background: #008E8F;
}

/* Loading State */
.qrp-loading {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    z-index: 100;
    justify-content: center;
    align-items: center;
}

.qrp-loading.qrp-active {
    display: flex;
}

.qrp-spinner {
    width: 48px;
    height: 48px;
    border: 4px solid #E7E7E7;
    border-top-color: #008E8F;
    border-radius: 50%;
    animation: qrpSpin 1s linear infinite;
}

@keyframes qrpSpin {
    to {
        transform: rotate(360deg);
    }
}

/* Error State */
.qrp-error {
    background: #FEF2F2;
    border: 1px solid #FECACA;
    color: #DC2626;
    padding: 12px 16px;
    border-radius: 7px;
    font-family: 'Open Sans', sans-serif;
    font-size: 14px;
    margin-bottom: 16px;
    display: none;
}

.qrp-error.qrp-active {
    display: block;
}

/* Field Validation */
.qrp-form-input.qrp-invalid,
.qrp-form-select.qrp-invalid,
.qrp-form-textarea.qrp-invalid {
    border-color: #EF4444;
}

.qrp-field-error {
    font-family: 'Open Sans', sans-serif;
    color: #EF4444;
    font-size: 12px;
    margin-top: 4px;
    display: none;
}

.qrp-field-error.qrp-active {
    display: block;
}

/* Scrollbar Styling */
.qrp-form-content::-webkit-scrollbar {
    width: 6px;
}

.qrp-form-content::-webkit-scrollbar-track {
    background: #F5F5F5;
    border-radius: 3px;
}

.qrp-form-content::-webkit-scrollbar-thumb {
    background: #D1D1D1;
    border-radius: 3px;
}

.qrp-form-content::-webkit-scrollbar-thumb:hover {
    background: #808080;
}

/* Mobile Responsive */
@media (max-width: 520px) {
    .qrp-popup {
        width: 95%;
        max-height: 95vh;
        border-radius: 12px;
    }

    .qrp-popup-header {
        padding: 20px 20px 0;
    }

    .qrp-steps-indicator {
        padding: 0 20px 20px;
        flex-wrap: nowrap;
        overflow-x: auto;
    }

    .qrp-step-label {
        font-size: 11px;
    }

    .qrp-step-line {
        width: 40px;
    }

    .qrp-form-content {
        padding: 0 20px;
        max-height: calc(95vh - 260px);
    }

    .qrp-form-footer {
        padding: 20px;
        margin-top: 24px;
    }

    .qrp-btn {
        padding: 10px 18px;
        font-size: 13px;
    }

    .qrp-phone-input-wrap {
        flex-direction: row;
    }

    .qrp-country-code {
        width: 70px;
    }
}