/* AI Forms Frontend Styles */

.ai-forms-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    align-items: flex-start;
}

.ai-forms-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
    justify-content: flex-start;
}

.ai-form-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;

    min-width: 210px;
    padding: 15px 28px;

    color: #ffffff !important;
    text-decoration: none !important;
    font-size: 17px;
    font-weight: 700;
    letter-spacing: .3px;

    border: none;
    border-radius: 16px;

    background: linear-gradient(
        135deg,
        #00d4ff,
        #6b5cff,
        #ff67d4
    );

    background-size: 300% 300%;

    box-shadow:
        0 0 20px rgba(0,212,255,.4),
        0 0 40px rgba(107,92,255,.35);

    transition: all .35s ease;
    overflow: hidden;

    animation:
        gradientMove 6s ease infinite,
        pulseGlow 2s ease-in-out infinite;
}

.ai-form-btn::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -120%;
    width: 70px;
    height: 220%;
    background: rgba(255,255,255,.25);
    transform: rotate(25deg);
    animation: shine 3s linear infinite;
}

.ai-form-btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow:
        0 0 30px rgba(0,212,255,.6),
        0 0 60px rgba(107,92,255,.45);
}

.ai-form-btn span {
    position: relative;
    z-index: 2;
}

.ai-forms-container {
    flex: 1;
    min-width: 300px;
}

.ai-form-wrapper {
    background: #fff;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 2px 20px rgba(0,0,0,0.08);
    min-height: 200px;
}

.ai-form-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
    color: #999;
    font-size: 16px;
}

.ai-form {
    opacity: 0;
    transform: translateY(20px);
    animation: aiFormFadeIn 0.4s ease forwards;
}

.ai-form-title {
    margin: 0 0 20px 0;
    font-size: 22px;
    color: #333;
}

.ai-form-field {
    margin-bottom: 18px;
}

.ai-form-field label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    color: #444;
    font-size: 14px;
}

.ai-form-field .required {
    color: #e74c3c;
    margin-left: 2px;
}

.ai-form-field input[type="text"],
.ai-form-field input[type="email"],
.ai-form-field input[type="tel"],
.ai-form-field input[type="file"],
.ai-form-field textarea,
.ai-form-field select {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
}

.ai-form-field input:focus,
.ai-form-field textarea:focus,
.ai-form-field select:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 3px rgba(0,115,170,0.1);
}

.ai-checkbox-label,
.ai-radio-label {
    display: flex !important;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    font-weight: 400 !important;
    cursor: pointer;
}

.ai-checkbox-label input,
.ai-radio-label input {
    width: auto !important;
    margin: 0;
}

.ai-submit-btn {
    padding: 12px 32px;
    border: none;
    color: #fff;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 4px;
}

.ai-submit-btn:hover {
    filter: brightness(1.1);
    transform: translateY(-2px);
}

.ai-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.ai-form-messages {
    margin-bottom: 16px;
}

.ai-form-messages .success {
    padding: 12px 16px;
    background: #d4edda;
    color: #155724;
    border-radius: 6px;
    border-left: 4px solid #28a745;
}

.ai-form-messages .error {
    padding: 12px 16px;
    background: #f8d7da;
    color: #721c24;
    border-radius: 6px;
    border-left: 4px solid #dc3545;
}

.ai-form-loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #fff;
    border-top-color: transparent;
    border-radius: 50%;
    animation: aiSpin 0.8s linear infinite;
    margin-left: 8px;
    vertical-align: middle;
}

/* Animations buttons */
@keyframes gradientMove {
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes pulseGlow {
    0%, 100% { transform: scale(1); }
    50%      { transform: scale(1.03); }
}

@keyframes shine {
    0%   { left: -120%; }
    100% { left: 150%; }
}

/* Animations forms */
@keyframes aiFormFadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes aiFormSlideIn {
    from { opacity: 0; transform: translateX(30px); }
    to   { opacity: 1; transform: translateX(0); }
}

@keyframes aiFormZoomIn {
    from { opacity: 0; transform: scale(0.9); }
    to   { opacity: 1; transform: scale(1); }
}

@keyframes aiSpin {
    to { transform: rotate(360deg); }
}

.ai-form[data-animation="slide"] {
    animation-name: aiFormSlideIn;
}

.ai-form[data-animation="zoom"] {
    animation-name: aiFormZoomIn;
}

.ai-form[data-animation="none"] {
    animation: none;
    opacity: 1;
    transform: none;
}

/* Responsive */
@media (max-width: 768px) {
    .ai-forms-wrapper {
        flex-direction: column;
    }

    .ai-forms-buttons {
        flex-direction: row;
        flex-wrap: wrap;
        width: 100%;
    }

    .ai-form-btn {
        min-width: auto;
        width: 100%;
        max-width: 280px;
        padding: 14px 22px;
        font-size: 16px;
    }

    .ai-forms-buttons {
        gap: 15px;
    }

    .ai-forms-container {
        width: 100%;
        min-width: auto;
    }

    .ai-form-wrapper {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .ai-form-btn {
        width: 100%;
        flex: none;
    }
}
