/* Container */
.bif-form-container {
    max-width: 500px;
    margin: 0 auto;
    padding: 24px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    box-sizing: border-box;
}

.bif-form-container * {
    box-sizing: border-box;
}

/* Fields */
.bif-field-group {
    margin-bottom: 20px;
    position: relative;
}

.bif-field-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #333333;
    margin-bottom: 8px;
}

.bif-required {
    color: #e53e3e;
}

.bif-field-group input {
    width: 100%;
    padding: 12px 16px;
    font-size: 15px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    background-color: #f9fafb;
    color: #1f2937;
    transition: all 0.3s ease;
    outline: none;
}

.bif-field-group input:focus {
    border-color: #3b82f6;
    background-color: #ffffff;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.bif-field-group input.bif-input-error {
    border-color: #e53e3e;
    background-color: #fff5f5;
}

/* Error Messages */
.bif-error-message {
    display: none;
    color: #e53e3e;
    font-size: 12px;
    margin-top: 6px;
}

.bif-field-group.has-error .bif-error-message {
    display: block;
}

/* Button */
.bif-submit-btn {
    width: 100%;
    padding: 14px;
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
    background-color: #111827;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.1s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 52px;
}

.bif-submit-btn:hover:not(:disabled) {
    background-color: #374151;
}

.bif-submit-btn:active:not(:disabled) {
    transform: scale(0.98);
}

.bif-submit-btn:disabled {
    background-color: #9ca3af;
    cursor: not-allowed;
}

/* Loader */
.bif-btn-loader {
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #ffffff;
    animation: bif-spin 1s ease-in-out infinite;
    display: inline-block;
}

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

/* Form Messages */
.bif-form-messages {
    margin-bottom: 20px;
}

.bif-success-message {
    padding: 12px 16px;
    background-color: #def7ec;
    color: #03543f;
    border: 1px solid #84e1bc;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
}

.bif-error-message-global {
    padding: 12px 16px;
    background-color: #fdf2f2;
    color: #9b1c1c;
    border: 1px solid #f8b4b4;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
}
