/* IDFST Dynamic Form Styles */

.idfst-form-wrapper {
    max-width: 600px;
    margin: 0 auto;
}

.idfst-form-message {
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: none;
    font-weight: 500;
}

.idfst-form-message.success {
    display: block;
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.idfst-form-message.error {
    display: block;
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.idfst-dynamic-form .form-group {
    margin-bottom: 20px;
}

.idfst-dynamic-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #0d3b5c;
    font-size: 14px;
}

.idfst-dynamic-form label .required {
    color: #dc3545;
}

.idfst-dynamic-form input[type="text"],
.idfst-dynamic-form input[type="email"],
.idfst-dynamic-form input[type="tel"],
.idfst-dynamic-form input[type="url"],
.idfst-dynamic-form input[type="number"],
.idfst-dynamic-form select,
.idfst-dynamic-form textarea {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 15px;
    font-family: 'Open Sans', sans-serif;
    transition: all 0.3s ease;
    background: #fff;
}

.idfst-dynamic-form input:focus,
.idfst-dynamic-form select:focus,
.idfst-dynamic-form textarea:focus {
    outline: none;
    border-color: #1a5f9e;
    box-shadow: 0 0 0 3px rgba(26, 95, 158, 0.1);
}

.idfst-dynamic-form textarea {
    resize: vertical;
    min-height: 120px;
}

.idfst-dynamic-form select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    padding-right: 40px;
}

.idfst-submit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 35px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    background: #e8b43e;
    color: #1a1a2e;
    width: 100%;
}

.idfst-submit-btn:hover {
    background: #1a5f9e;
    color: #fff;
}

.idfst-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.idfst-submit-btn i {
    font-size: 14px;
}

/* Loading spinner */
.idfst-submit-btn.loading::after {
    content: '';
    width: 16px;
    height: 16px;
    border: 2px solid #fff;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-left: 8px;
}

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