@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap');

.gfb-product-inquiry-form {
    max-width: 600px;
    margin: 20px auto;
    padding: 30px;
    background: #fafafa;
    border-radius: 16px;
    color: #010101;
    font-family: 'Outfit', sans-serif;
    box-shadow: rgba(0, 0, 0, 0.05) 0px 6px 24px 0px, rgba(0, 0, 0, 0.08) 0px 0px 0px 1px;
}

.gfb-product-info {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
    padding: 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
}

.gfb-product-info:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    text-decoration: none;
    color: inherit;
}

.gfb-product-image {
    margin-right: 20px;
}

.gfb-product-image img {
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.gfb-product-info:hover .gfb-product-image img {
    transform: scale(1.05);
}

.gfb-product-title h3 {
    margin: 0;
    color: #010101;
    font-size: 20px;
    font-weight: 600;
    font-family: 'Outfit', sans-serif;
    text-decoration: none !important;
}

.gfb-form-row {
    margin-bottom: 20px;
}

.gfb-form-row label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #010101;
    font-size: 14px;
    font-family: 'Outfit', sans-serif;
}

.gfb-inputForm {
    position: relative;
    width: 100%;
}

.gfb-form-row input,
.gfb-form-row select {
    width: 100% !important;
    padding: 14px 16px !important;
    border: 1.5px solid #ecedec !important;
    border-radius: 24px !important;
    font-size: 14px !important;
    font-family: 'Outfit', sans-serif !important;
    background: white !important;
    color: #010101 !important;
    transition: 0.2s ease-in-out !important;
    box-sizing: border-box !important;
}

.gfb-form-row input:focus,
.gfb-form-row select:focus {
    outline: none !important;
}


.gfb-amount-input {
    display: flex;
    align-items: center;
    background: white;
    border: 1.5px solid #ecedec;
    border-radius: 24px;
    transition: 0.2s ease-in-out;
    overflow: hidden;
}

.gfb-amount-input input {
    border: none !important;
}


.gfb-currency {
    background: #f8f9fa;
    padding: 14px 16px;
    border: none;
    font-weight: 500;
    color: #010101;
    font-family: 'Outfit', sans-serif;
}

.gfb-amount-input input {
    border: none;
    border-radius: 0;
    flex: 1;
}


.gfb-captcha-container {
    display: flex;
    align-items: center;
    gap: 15px;
}

.gfb-captcha-question {
    background: white;
    padding: 14px 16px;
    border-radius: 24px;
    font-weight: 500;
    border: 1.5px solid #ecedec;
    color: #010101;
    font-family: 'Outfit', sans-serif;
    min-width: 100px;

}

.gfb-captcha-container input {
    width: 100px !important;
}

.gfb-submit-btn {
    background: #004e59 !important;
    color: white !important;
    padding: 16px 48px !important;
    border: none !important;
    border-radius: 24px !important;
    cursor: pointer !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    font-family: 'Outfit', sans-serif !important;
    position: relative !important;
    display: block !important;
    margin: 30px auto 0 !important;
    min-width: 200px !important;
    transition: all 0.3s ease !important;
}

.gfb-submit-btn:hover {
    background: #003a44;
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0, 78, 89, 0.3);
}

.gfb-submit-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.gfb-inquiry-message {
    padding: 10px;
    margin-bottom: 20px;
    border-radius: 4px;
}

.gfb-inquiry-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.gfb-inquiry-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Success Popup Styles */
.success-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.success-popup.show {
    opacity: 1;
    visibility: visible;
}

.popup-content {
    background: white;
    padding: 40px;
    border-radius: 12px;
    text-align: center;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transform: scale(0.8);
    transition: transform 0.3s ease;
}

.success-popup.show .popup-content {
    transform: scale(1);
}

.popup-icon {
    width: 80px;
    height: 80px;
    background: #28a745;
    border-radius: 50%;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    color: white;
}

.popup-title {
    font-size: 24px;
    color: #333;
    margin-bottom: 10px;
    font-weight: bold;
}

.popup-message {
    color: #666;
    margin-bottom: 30px;
    line-height: 1.6;
}

.popup-close {
    background: #0073aa;
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    transition: background 0.3s ease;
}

.popup-close:hover {
    background: #005a87;
}

/* Loading animation */
.gfb-submit-btn.loading {
    opacity: 0.7;
    pointer-events: none;
}

.gfb-submit-btn.loading::after {
    content: '';
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid #ffffff;
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-left: 8px;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Form validation styles */
.gfb-form-row input.error,
.gfb-form-row select.error {
    border-color: #dc3232;
    box-shadow: 0 0 3px rgba(220, 50, 50, 0.3);
}

.gfb-field-error {
    color: #dc3232;
    font-size: 12px;
    display: block;
    margin-top: 4px;
}

/* Responsive design */
@media (max-width: 600px) {
    .gfb-product-inquiry-form {
        margin: 10px;
        padding: 20px;
    }

    .gfb-product-info {
        flex-direction: column;
        text-align: center;
        padding: 15px;
    }

    .gfb-product-image {
        margin-right: 0;
        margin-bottom: 15px;
    }

    .gfb-amount-input {
        flex-direction: column;
        border-radius: 24px;
    }

    .gfb-currency {
        border-radius: 24px 24px 0 0;
        border-bottom: 1px solid #ecedec;
    }

    .gfb-amount-input input {
        border-radius: 0 0 24px 24px;
        border-top: none;
    }

    .gfb-captcha-container {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }

    .gfb-captcha-container .gfb-inputForm {
        width: 100%;
    }

    .gfb-captcha-container input {
        width: 100% !important;
    }

    .popup-content {
        padding: 30px 20px;
    }

    .gfb-submit-btn {
        padding: 14px 32px;
        font-size: 15px;
    }
}