/* Modal Styles */
.gx-modal-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
}

.gx-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 99998;
}

.gx-modal {
    position: relative;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    background: #fff;
    border-radius: 24px;
    overflow-y: auto;
    z-index: 99999;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.gx-modal-content {
    padding: 32px;
}

.gx-modal-close {
    position: absolute;
    top: 24px;
    right: 24px;
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.gx-modal-close:hover {
    background: #f5f5f5;
    color: #222;
}

.gx-modal-header {
    margin-bottom: 32px;
}

.gx-product-preview {
    display: flex;
    gap: 24px;
    align-items: flex-start;
}

.gx-preview-image {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 12px;
}

.gx-preview-info h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #222;
    margin: 0 0 8px;
}

.gx-preview-info p {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0;
}

.gx-inquiry-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.gx-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.gx-form-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.gx-form-group label {
    font-size: 0.9rem;
    font-weight: 500;
    color: #222;
}

.gx-form-input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #eee;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.2s ease;
    color: #222;
}

.gx-form-input:focus {
    border-color: #3db54a;
    outline: none;
}

.gx-form-error {
    color: #dc3545;
    font-size: 0.85rem;
    margin-top: 4px;
}

.gx-submit-btn {
    background: #3db54a;
    color: #fff;
    border: none;
    border-radius: 12px;
    padding: 16px 32px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.gx-submit-btn:hover {
    background: #2f8e3a;
}

.gx-spinner {
    display: flex;
    align-items: center;
    justify-content: center;
}

.gx-spinner-icon {
    animation: gxSpin 1s linear infinite;
}

@keyframes gxSpin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Modal Animations */
.gx-modal-enter {
    transition: all 0.3s ease-out;
}

.gx-modal-enter-start {
    opacity: 0;
    transform: scale(0.95) translateY(10px);
}

.gx-modal-enter-end {
    opacity: 1;
    transform: scale(1) translateY(0);
}

.gx-modal-leave {
    transition: all 0.2s ease-in;
}

.gx-modal-leave-start {
    opacity: 1;
    transform: scale(1) translateY(0);
}

.gx-modal-leave-end {
    opacity: 0;
    transform: scale(0.95) translateY(10px);
}

/* Success Alert */
.gx-success-alert {
    position: fixed;
    top: 24px;
    right: 24px;
    background: #3db54a;
    color: #fff;
    padding: 16px 24px;
    border-radius: 12px;
    font-size: 0.95rem;
    z-index: 100000;
    animation: gxSlideIn 0.3s ease;
    box-shadow: 0 4px 12px rgba(61, 181, 74, 0.2);
}

@keyframes gxSlideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Responsive Styles */
@media (max-width: 768px) {
    .gx-modal {
        width: 95%;
        margin: 16px;
        max-height: calc(100vh - 32px);
    }

    .gx-modal-content {
        padding: 24px;
    }

    .gx-form-row {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .gx-product-preview {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .gx-preview-image {
        width: 100px;
        height: 100px;
    }
}

@media (max-width: 480px) {
    .gx-modal-content {
        padding: 16px;
    }

    .gx-preview-info h3 {
        font-size: 1.2rem;
    }

    .gx-submit-btn {
        padding: 14px 24px;
        font-size: 0.95rem;
    }
}
