/**
 * WP Form - Teklif Al Styles
 */

/* Floating Button */
.wp-form-floating-button {
    position: fixed;
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 10px;
    background: #2563EB;
    color: #fff;
    padding: 12px 20px;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 16px;
    font-weight: 500;
    user-select: none;
}

.wp-form-floating-button:hover {
    background: #1D4ED8;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
    transform: translateY(-2px);
}

.wp-form-floating-button:active {
    transform: translateY(0);
}

/* Form Icon */
.wp-form-button-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.wp-form-button-icon svg {
    width: 100%;
    height: 100%;
    fill: currentColor;
}

/* Button Text */
.wp-form-button-text {
    white-space: nowrap;
}

/* Modal */
.wp-form-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
}

.wp-form-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.wp-form-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(2px);
}

.wp-form-modal-content {
    position: relative;
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    animation: wp-form-modal-fade-in 0.3s ease;
}

@keyframes wp-form-modal-fade-in {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.wp-form-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 28px;
    line-height: 1;
    color: #666;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.wp-form-modal-close:hover {
    background: #f0f0f0;
    color: #333;
}

.wp-form-modal-title {
    margin: 0 0 25px 0;
    font-size: 24px;
    font-weight: 600;
    color: #2c3e50;
}

/* Form Styles */
.wp-form-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.wp-form-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.wp-form-field label {
    font-weight: 500;
    color: #333;
    font-size: 14px;
}

.wp-form-field .required {
    color: #e74c3c;
}

.wp-form-field input[type="text"],
.wp-form-field input[type="tel"],
.wp-form-field input[type="number"] {
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 15px;
    transition: border-color 0.3s ease;
    font-family: inherit;
}

.wp-form-field input[type="text"]:focus,
.wp-form-field input[type="tel"]:focus,
.wp-form-field input[type="number"]:focus {
    outline: none;
    border-color: #2563EB;
}

.wp-form-field-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.wp-form-submit-btn {
    background: #2563EB;
    color: #fff;
    border: none;
    padding: 14px 24px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.wp-form-submit-btn:hover {
    background: #1D4ED8;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.wp-form-submit-btn:active {
    transform: translateY(0);
}

.wp-form-submit-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

/* Message Display */
.wp-form-message {
    padding: 12px 15px;
    border-radius: 8px;
    font-size: 14px;
    display: none;
}

.wp-form-message.show {
    display: block;
}

.wp-form-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.wp-form-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Responsive Design */
@media (max-width: 768px) {
    .wp-form-floating-button {
        padding: 10px 16px;
        font-size: 14px;
    }
    
    .wp-form-button-icon {
        width: 20px;
        height: 20px;
    }
    
    .wp-form-modal-content {
        padding: 20px;
        width: 95%;
        max-height: 95vh;
    }
    
    .wp-form-field-group {
        grid-template-columns: 1fr;
    }
    
    .wp-form-modal-title {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .wp-form-floating-button {
        padding: 8px 14px;
        font-size: 13px;
        gap: 8px;
    }
    
    .wp-form-button-text {
        font-size: 13px;
    }
}

/* Loading State */
.wp-form-submit-btn.loading {
    position: relative;
    color: transparent;
}

.wp-form-submit-btn.loading::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: wp-form-spin 0.8s linear infinite;
}

@keyframes wp-form-spin {
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

