/* =============== GQF PROFESSIONAL FORM STYLES =============== */
/* Reset and Base Styles */
.gqf-form-container * {
    box-sizing: border-box;
}

.gqf-form-container {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    margin: 20px 0;
    border: 1px solid #e1e5e9;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    position: relative;
    overflow: hidden;
}

.gqf-form-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #667eea, #764ba2);
}

.gqf-form-container h2,
.gqf-form-container h3 {
    margin: 0 0 15px 0;
    color: #1f2937;
    font-weight: 700;
    font-size: 1.5rem;
    line-height: 1.3;
}

.gqf-form-container p {
    color: #6b7280;
    margin: 0 0 25px 0;
    font-size: 15px;
    line-height: 1.5;
}

/* Form Groups */
.gqf-form-group {
    margin-bottom: 20px;
    position: relative;
}

.gqf-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #374151;
    font-size: 14px;
}

/* Form Controls */
.gqf-form-control {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.3s ease;
    background: #ffffff;
    color: #1f2937;
    outline: none;
    font-family: inherit;
}

.gqf-form-control:focus {
    border-color: #3b82f6;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Buttons */
.gqf-btn {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
    border: none;
    padding: 15px 25px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
    width: 100%;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-family: inherit;
    position: relative;
    overflow: hidden;
}

.gqf-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.gqf-btn:hover::before {
    left: 100%;
}

.gqf-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.3);
}

.gqf-btn:active {
    transform: translateY(0);
}

.gqf-btn-accent {
    background: linear-gradient(135deg, #10b981, #059669);
}

.gqf-btn-accent:hover {
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.3);
}

.gqf-btn-quote {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
}

.gqf-btn-quote:hover {
    box-shadow: 0 8px 20px rgba(245, 158, 11, 0.3);
}

/* =============== FORM 1 STYLES =============== */
.gqf-form-1 input,
.gqf-form-1 select {
    width: 100%;
    padding: 14px 16px;
    margin-bottom: 15px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 15px;
    background: #ffffff;
    transition: all 0.3s ease;
    font-family: inherit;
}

.gqf-form-1 input:focus,
.gqf-form-1 select:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* =============== FORM 2 STYLES =============== */
.gqf-form-2 .gqf-form-group {
    margin-bottom: 7px;
}

.gqf-form-2 input,
.gqf-form-2 select,
.gqf-form-2 textarea {
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    padding: 7px 4px;
    font-size: 15px;
    transition: all 0.3s ease;
    width: 100%;
    font-family: inherit;
}

.gqf-form-2 input:focus,
.gqf-form-2 select:focus,
.gqf-form-2 textarea:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* =============== FORM 3 STYLES =============== */
.gqf-form-3 .gqf-form-control {
    margin-bottom: 20px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    padding: 14px 16px;
    width: 100%;
}

.gqf-form-3 .gqf-form-control:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* =============== FORM 4 STYLES =============== */
.gqf-form-4 .gqf-form-group {
    position: relative;
    margin-bottom: 25px;
}

.gqf-form-4 .gqf-form-group label {
    position: absolute;
    top: -10px;
    left: 12px;
    background: white;
    padding: 0 8px;
    font-size: 12px;
    color: #6b7280;
    font-weight: 600;
    z-index: 1;
}

.gqf-form-4 .gqf-form-control {
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    padding: 16px;
    background: #ffffff;
    width: 100%;
}

.gqf-form-4 .gqf-form-control:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* =============== VENDOR AUTH STYLES =============== */
.gqf-vendor-auth {
    background: white;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    max-width: 450px;
    margin: 30px auto;
    border: 1px solid #e1e5e9;
    position: relative;
    overflow: hidden;
}

.gqf-vendor-auth::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #667eea, #764ba2);
}

.gqf-auth-tabs {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0 0 30px 0;
    border-bottom: 2px solid #e5e7eb;
    background: none;
}

.gqf-auth-tabs li {
    padding: 12px 25px;
    cursor: pointer;
    color: #6b7280;
    border-bottom: 3px solid transparent;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
}

.gqf-auth-tabs li.gqf-tab-active {
    color: #3b82f6;
    border-bottom-color: #3b82f6;
}

.gqf-auth-tabs li:hover {
    color: #3b82f6;
}

.gqf-tab-pane {
    display: none;
    animation: gqfFadeIn 0.3s ease;
}

.gqf-tab-pane.gqf-active {
    display: block;
}

@keyframes gqfFadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.gqf-vendor-auth .gqf-form-group {
    margin-bottom: 20px;
}

.gqf-vendor-auth input {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.3s ease;
    background: #ffffff;
    font-family: inherit;
}

.gqf-vendor-auth input:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.gqf-vendor-auth button {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
    border: none;
    padding: 15px 25px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
    width: 100%;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-family: inherit;
}

.gqf-vendor-auth button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.3);
}

/* Alert Styles */
.gqf-alert {
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-weight: 500;
    border-left: 4px solid;
}

.gqf-alert-info {
    background: #dbeafe;
    border-left-color: #3b82f6;
    color: #1e40af;
}

.gqf-alert-warning {
    background: #fef3c7;
    border-left-color: #f59e0b;
    color: #92400e;
}

/* Popup Trigger Buttons */
.gqf-popup-trigger {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
    border: none;
    padding: 14px 28px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
    font-family: inherit;
    display: inline-block;
    text-decoration: none;
    text-align: center;
}

.gqf-popup-trigger:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
    color: white;
}

.gqf-popup-trigger:active {
    transform: translateY(0);
}

/* Select Dropdown Styles */
.gqf-form-container select {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 16px;
    padding-right: 45px;
}

/* Textarea Styles */
.gqf-form-container textarea {
    resize: vertical;
    min-height: 120px;
    font-family: inherit;
    line-height: 1.5;
}

/* Loading States */
.gqf-loading {
    opacity: 0.7;
    pointer-events: none;
    position: relative;
}

.gqf-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #f3f4f6;
    border-top: 2px solid #3b82f6;
    border-radius: 50%;
    animation: gqf-spin 1s linear infinite;
}

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

/* Success States */
.gqf-success {
    border-color: #10b981 !important;
    background-color: #ecfdf5 !important;
}

/* Error States */
.gqf-error {
    border-color: #ef4444 !important;
    background-color: #fef2f2 !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    .gqf-form-container {
        padding: 20px;
        margin: 15px 0;
    }
    
    .gqf-vendor-auth {
        margin: 20px auto;
        padding: 20px;
    }
    
    .gqf-auth-tabs li {
        padding: 10px 15px;
        font-size: 14px;
    }
    
    .gqf-form-container h2 {
        font-size: 1.3rem;
    }
    
    .gqf-form-container h3 {
        font-size: 1.2rem;
    }
    
    .gqf-btn,
    .gqf-popup-trigger {
        padding: 12px 20px;
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    .gqf-form-container {
        padding: 15px;
    }
    
    .gqf-vendor-auth {
        padding: 15px;
        margin: 15px;
    }
    
    .gqf-auth-tabs {
        flex-direction: column;
        border-bottom: none;
    }
    
    .gqf-auth-tabs li {
        border-bottom: 2px solid #e5e7eb;
        border-left: 3px solid transparent;
        text-align: center;
    }
    
    .gqf-auth-tabs li.gqf-tab-active {
        border-left-color: #3b82f6;
        border-bottom-color: #e5e7eb;
    }
}

/* Print Styles */
@media print {
    .gqf-popup-trigger,
    .gqf-pro-popup {
        display: none !important;
    }
}