/**
 * Fluent Forms Custom Styling
 * Matches the AgentCoders coming soon page design
 *
 * @package AgentCoders_Theme
 * @since 1.0.0
 */

:root {
    --primary-purple: #6B46C1;
    --secondary-purple: #9333EA;
    --primary-blue: #3B82F6;
    --secondary-blue: #60A5FA;
}

/* Form Container */
.fluentform .ff-el-form-control,
.fluentform input[type="email"],
.fluentform input[type="text"],
.fluentform textarea {
    width: 100%;
    padding: 1.2rem 1.5rem !important;
    background: rgba(255, 255, 255, 0.1) !important;
    border: 2px solid rgba(255, 255, 255, 0.2) !important;
    border-radius: 50px !important;
    color: white !important;
    font-size: 1.1rem !important;
    transition: all 0.3s ease !important;
    backdrop-filter: blur(10px) !important;
}

/* Textarea - less rounded for better UX */
.fluentform textarea {
    border-radius: 20px !important;
    min-height: 120px !important;
}

/* Placeholder styling */
.fluentform .ff-el-form-control::placeholder,
.fluentform input::placeholder,
.fluentform textarea::placeholder {
    color: rgba(255, 255, 255, 0.5) !important;
}

/* Input Focus State */
.fluentform .ff-el-form-control:focus,
.fluentform input[type="email"]:focus,
.fluentform input[type="text"]:focus,
.fluentform textarea:focus {
    outline: none !important;
    border-color: var(--secondary-purple) !important;
    background: rgba(255, 255, 255, 0.15) !important;
    box-shadow: 0 0 30px rgba(147, 51, 234, 0.3) !important;
}

/* Submit Button */
.fluentform .ff-btn-submit,
.fluentform button[type="submit"] {
    width: 100% !important;
    padding: 1.2rem 2rem !important;
    background: linear-gradient(135deg, var(--primary-purple) 0%, var(--primary-blue) 100%) !important;
    border: none !important;
    border-radius: 50px !important;
    color: white !important;
    font-size: 1.1rem !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    position: relative !important;
    overflow: hidden !important;
}

/* Button Shine Effect */
.fluentform .ff-btn-submit:before,
.fluentform button[type="submit"]:before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s;
}

.fluentform .ff-btn-submit:hover:before,
.fluentform button[type="submit"]:hover:before {
    left: 100%;
}

/* Button Hover State */
.fluentform .ff-btn-submit:hover,
.fluentform button[type="submit"]:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 10px 30px rgba(147, 51, 234, 0.4) !important;
}

/* Form Labels */
.fluentform .ff-el-input--label label,
.fluentform label {
    color: #E0E7FF !important;
    font-weight: 500 !important;
    margin-bottom: 0.5rem !important;
}

/* Error Messages */
.fluentform .error,
.fluentform .ff-el-is-error .text-danger {
    color: #FCA5A5 !important;
    background: rgba(236, 72, 153, 0.2) !important;
    border: 1px solid rgba(236, 72, 153, 0.5) !important;
    padding: 0.5rem 1rem !important;
    border-radius: 12px !important;
    margin-top: 0.5rem !important;
}

/* Success Message */
.fluentform .ff-message-success,
.fluentform .success-message {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.2), rgba(16, 185, 129, 0.2)) !important;
    border: 1px solid rgba(34, 197, 94, 0.5) !important;
    color: #86EFAC !important;
    padding: 1rem 2rem !important;
    border-radius: 12px !important;
    margin-top: 1rem !important;
}

/* Remove default Fluent Forms styling that conflicts */
.fluentform .ff-el-group {
    margin-bottom: 1rem !important;
}

.fluentform .ff-el-form-control::-webkit-input-placeholder {
    color: rgba(255, 255, 255, 0.5) !important;
}

.fluentform .ff-el-form-control::-moz-placeholder {
    color: rgba(255, 255, 255, 0.5) !important;
}

/* Checkbox and Radio Button Styling */
.fluentform input[type="checkbox"],
.fluentform input[type="radio"] {
    width: auto !important;
    padding: 0 !important;
    margin-right: 0.5rem !important;
}

.fluentform .ff-el-form-check-label {
    color: #E0E7FF !important;
}

/* Select Dropdown */
.fluentform select {
    width: 100%;
    padding: 1.2rem 1.5rem !important;
    background: rgba(255, 255, 255, 0.1) !important;
    border: 2px solid rgba(255, 255, 255, 0.2) !important;
    border-radius: 50px !important;
    color: white !important;
    font-size: 1.1rem !important;
    transition: all 0.3s ease !important;
    backdrop-filter: blur(10px) !important;
}

.fluentform select:focus {
    outline: none !important;
    border-color: var(--secondary-purple) !important;
    background: rgba(255, 255, 255, 0.15) !important;
    box-shadow: 0 0 30px rgba(147, 51, 234, 0.3) !important;
}

/* Remove autofill background color */
.fluentform input:-webkit-autofill,
.fluentform input:-webkit-autofill:hover,
.fluentform input:-webkit-autofill:focus {
    -webkit-text-fill-color: white !important;
    -webkit-box-shadow: 0 0 0px 1000px rgba(255, 255, 255, 0.1) inset !important;
    transition: background-color 5000s ease-in-out 0s !important;
}

/* Loading State */
.fluentform .ff-btn-submit.ff-working,
.fluentform button[type="submit"]:disabled {
    opacity: 0.7 !important;
    cursor: not-allowed !important;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .fluentform .ff-el-form-control,
    .fluentform input[type="email"],
    .fluentform input[type="text"],
    .fluentform textarea,
    .fluentform select {
        font-size: 1rem !important;
        padding: 1rem 1.2rem !important;
    }

    .fluentform .ff-btn-submit,
    .fluentform button[type="submit"] {
        font-size: 1rem !important;
        padding: 1rem 1.5rem !important;
    }
}
